Merge pull request #6637 from electron/check-window-class

Check that window is an EventDispatchingWindow
This commit is contained in:
Cheng Zhao 2016-07-29 10:42:36 +09:00 committed by GitHub
commit 72612ed2f5

View file

@ -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];
}