Remove isKindOfClass check
This commit is contained in:
parent
0e65977a3c
commit
711c3abaeb
1 changed files with 2 additions and 5 deletions
|
@ -23,11 +23,8 @@ 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);
|
||||||
|
|
||||||
NSWindow* window = event.os_event.window;
|
EventDispatchingWindow* native_window = static_cast<EventDispatchingWindow*>(event.os_event.window);
|
||||||
if (window && [window isKindOfClass:[EventDispatchingWindow class]]) {
|
[native_window redispatchKeyEvent:event.os_event];
|
||||||
EventDispatchingWindow* native_window = static_cast<EventDispatchingWindow*>(window);
|
|
||||||
[native_window redispatchKeyEvent:event.os_event];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace atom
|
} // namespace atom
|
||||||
|
|
Loading…
Reference in a new issue