Add back window check

This commit is contained in:
Kevin Sawicki 2016-06-17 16:23:54 -07:00
parent c9fdd52f7e
commit 754c4654d4

View file

@ -23,6 +23,7 @@ void CommonWebContentsDelegate::HandleKeyboardEvent(
if (event.windowsKeyCode == ui::VKEY_ESCAPE && is_html_fullscreen()) if (event.windowsKeyCode == ui::VKEY_ESCAPE && is_html_fullscreen())
ExitFullscreenModeForTab(source); ExitFullscreenModeForTab(source);
if (event.os_event.window)
[(EventDispatchingWindow*)event.os_event.window redispatchKeyEvent:event.os_event]; [(EventDispatchingWindow*)event.os_event.window redispatchKeyEvent:event.os_event];
} }