]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Fix pressing Alt not toggling window menu bar
authorCheng Zhao <zcbenz@gmail.com>
Thu, 24 Dec 2015 03:43:14 +0000 (11:43 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 24 Dec 2015 03:43:14 +0000 (11:43 +0800)
atom/browser/native_window_views.cc

index 16faee58c5a43fca56227690fefed1f2ed952f94..1abb2ef8d3e9dcb578ec902609247c46c51019fb 100644 (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) {