mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add back window check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user