linux: Fix pressing Alt not showing menubar

This commit is contained in:
Cheng Zhao 2015-10-04 16:32:08 +08:00
parent 5d7cfa1b3a
commit 791f988aba

View file

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