Check that window is an EventDispatchingWindow

This commit is contained in:
Kevin Sawicki 2016-07-28 08:48:56 -07:00
parent b790ad6c1a
commit 5eaae8136e

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