From: Cheng Zhao Date: Thu, 24 Dec 2015 03:43:14 +0000 (+0800) Subject: linux: Fix pressing Alt not toggling window menu bar X-Git-Tag: v0.36.2~10^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d3d8ab7c66a3d0b36e7d4cc0e3d8bc808d34ffd4;p=electron.git linux: Fix pressing Alt not toggling window menu bar --- diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 16faee58..1abb2ef8 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -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) {