diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index bf25ea87fa27..1aafe6c0e2fe 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -549,14 +549,13 @@ void NativeWindowViews::HandleKeyboardEvent( content::WebContents*, const content::NativeWebKeyboardEvent& event) { if (menu_bar_autohide_ && - (event.modifiers & content::NativeWebKeyboardEvent::AltKey) && #if defined(USE_X11) // 164 and 165 represent VK_LALT and VK_RALT. (event.windowsKeyCode == 164 || event.windowsKeyCode == 165) && #else (event.windowsKeyCode == ui::VKEY_MENU) && #endif - (event.type == blink::WebInputEvent::RawKeyDown)) { + (event.type == blink::WebInputEvent::KeyUp)) { SetMenuBarVisibility(!menu_bar_show_); Layout(); }