]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Fix pressing Alt not showing menubar
authorCheng Zhao <zcbenz@gmail.com>
Sun, 4 Oct 2015 08:32:08 +0000 (16:32 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 4 Oct 2015 08:32:08 +0000 (16:32 +0800)
atom/browser/native_window_views.cc

index e9db97e195d15ab43ece6c56347f180ee7a2ef1d..4282b0eda96f79e8f7624ca82f19d16e88fb95f9 100644 (file)
@@ -905,9 +905,6 @@ void NativeWindowViews::HandleKeyboardEvent(
     // When a single Alt is pressed:
     menu_bar_alt_pressed_ = true;
   } else if (event.type == blink::WebInputEvent::KeyUp && IsAltKey(event) &&
-#if defined(USE_X11)
-             event.modifiers == 0 &&
-#endif
              menu_bar_alt_pressed_) {
     // When a single Alt is released right after a Alt is pressed:
     menu_bar_alt_pressed_ = false;