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,7 +23,8 @@ void CommonWebContentsDelegate::HandleKeyboardEvent(
if (event.windowsKeyCode == ui::VKEY_ESCAPE && is_html_fullscreen())
ExitFullscreenModeForTab(source);
[(EventDispatchingWindow*)event.os_event.window redispatchKeyEvent:event.os_event];
if (event.os_event.window)
[(EventDispatchingWindow*)event.os_event.window redispatchKeyEvent:event.os_event];
}
} // namespace atom