linux: Fix pressing Alt not toggling window menu bar

This commit is contained in:
Cheng Zhao 2015-12-24 11:43:14 +08:00
parent c9fafc0c3a
commit d3d8ab7c66

View file

@ -60,12 +60,7 @@ const int kMenuBarHeight = 25;
#endif
bool IsAltKey(const content::NativeWebKeyboardEvent& event) {
#if defined(USE_X11)
// 164 and 165 represent VK_LALT and VK_RALT.
return event.windowsKeyCode == 164 || event.windowsKeyCode == 165;
#else
return event.windowsKeyCode == ui::VKEY_MENU;
#endif
}
bool IsAltModifier(const content::NativeWebKeyboardEvent& event) {