mirror of
https://github.com/electron/electron.git
synced 2026-02-16 18:16:39 -05:00
Merge pull request #6637 from electron/check-window-class
Check that window is an EventDispatchingWindow
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user