Check that window is an EventDispatchingWindow
This commit is contained in:
parent
b790ad6c1a
commit
5eaae8136e
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ void CommonWebContentsDelegate::HandleKeyboardEvent(
|
|||
[[NSApp mainMenu] performKeyEquivalent:event.os_event])
|
||||
return;
|
||||
|
||||
if (event.os_event.window)
|
||||
if (event.os_event.window &&
|
||||
[event.os_event.window isKindOfClass:[EventDispatchingWindow class]])
|
||||
[event.os_event.window redispatchKeyEvent:event.os_event];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue