Handle redispatch in devtools undocked windows

This commit is contained in:
Kevin Sawicki 2016-06-17 10:27:53 -07:00
parent e0f06d582d
commit 3bc4f188ef
2 changed files with 3 additions and 3 deletions

View file

@ -24,8 +24,8 @@ void CommonWebContentsDelegate::HandleKeyboardEvent(
ExitFullscreenModeForTab(source);
NSWindow* window = event.os_event.window;
if (window && [window isKindOfClass:[AtomNSWindow class]]) {
[((AtomNSWindow*)window) redispatchKeyEvent:event.os_event];
if ([window respondsToSelector:@selector(redispatchKeyEvent:)]) {
[(id)window redispatchKeyEvent:event.os_event];
}
}