From 13e554ab11ef05a142f0ebc857b0c6b0d56cbaad Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 17 Jun 2016 11:31:18 -0700 Subject: [PATCH] :art: --- atom/browser/common_web_contents_delegate_mac.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/atom/browser/common_web_contents_delegate_mac.mm b/atom/browser/common_web_contents_delegate_mac.mm index e285c321e2d3..bdb1791df62e 100644 --- a/atom/browser/common_web_contents_delegate_mac.mm +++ b/atom/browser/common_web_contents_delegate_mac.mm @@ -23,8 +23,7 @@ void CommonWebContentsDelegate::HandleKeyboardEvent( if (event.windowsKeyCode == ui::VKEY_ESCAPE && is_html_fullscreen()) ExitFullscreenModeForTab(source); - EventDispatchingWindow* native_window = static_cast(event.os_event.window); - [native_window redispatchKeyEvent:event.os_event]; + [(EventDispatchingWindow*)event.os_event.window redispatchKeyEvent:event.os_event]; } } // namespace atom