Add back window check
This commit is contained in:
parent
c9fdd52f7e
commit
754c4654d4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue