I have worked out how to open devtools from the main window like this:
- Code: Select all
class KeyboardHandler : public CefKeyboardHandler
{
bool OnKeyEvent(...)
{
// Catch Ctrl+Shift+i, do ShowDevTools() then return true;
return false;
}
}
But I am not sure how to do the same for pop windows because OnKeyEvent does not get called for them. Could anybody show me how to do that?
Many thanks