From d3d8ab7c66a3d0b36e7d4cc0e3d8bc808d34ffd4 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 24 Dec 2015 11:43:14 +0800 Subject: [PATCH] linux: Fix pressing Alt not toggling window menu bar --- atom/browser/native_window_views.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 16faee58c5a..1abb2ef8d3e 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) {