Merge pull request #6637 from electron/check-window-class
Check that window is an EventDispatchingWindow
This commit is contained in:
commit
72612ed2f5
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