views: Show menu when "Alt" is up.
This commit is contained in:
parent
3d989b6736
commit
09f9d0729c
1 changed files with 1 additions and 2 deletions
|
@ -549,14 +549,13 @@ void NativeWindowViews::HandleKeyboardEvent(
|
|||
content::WebContents*,
|
||||
const content::NativeWebKeyboardEvent& event) {
|
||||
if (menu_bar_autohide_ &&
|
||||
(event.modifiers & content::NativeWebKeyboardEvent::AltKey) &&
|
||||
#if defined(USE_X11)
|
||||
// 164 and 165 represent VK_LALT and VK_RALT.
|
||||
(event.windowsKeyCode == 164 || event.windowsKeyCode == 165) &&
|
||||
#else
|
||||
(event.windowsKeyCode == ui::VKEY_MENU) &&
|
||||
#endif
|
||||
(event.type == blink::WebInputEvent::RawKeyDown)) {
|
||||
(event.type == blink::WebInputEvent::KeyUp)) {
|
||||
SetMenuBarVisibility(!menu_bar_show_);
|
||||
Layout();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue