views: Toggle the menu bar only when a single Alt is released.

This commit is contained in:
Cheng Zhao 2014-08-07 15:54:05 +08:00
parent 09f9d0729c
commit 5d5a3138bc
2 changed files with 29 additions and 8 deletions

View file

@ -131,6 +131,7 @@ class NativeWindowViews : public NativeWindow,
scoped_ptr<MenuBar> menu_bar_;
bool menu_bar_autohide_;
bool menu_bar_show_;
bool menu_bar_alt_pressed_;
#if defined(USE_X11)
scoped_ptr<GlobalMenuBarX11> global_menu_bar_;