Fix menubar toggle alt key detection on focus
Reset alt keypress flag on window blur so switching window via Alt+* window manager keybindings can't incedentally trigger annoying menubar toggles
This commit is contained in:
parent
569b87ff83
commit
ba24920fec
1 changed files with 2 additions and 0 deletions
|
@ -1187,6 +1187,8 @@ void NativeWindowViews::OnWidgetActivationChanged(
|
|||
// Hide menu bar when window is blured.
|
||||
if (!active && menu_bar_autohide_ && menu_bar_visible_)
|
||||
SetMenuBarVisibility(false);
|
||||
|
||||
menu_bar_alt_pressed_ = false;
|
||||
}
|
||||
|
||||
void NativeWindowViews::OnWidgetBoundsChanged(
|
||||
|
|
Loading…
Add table
Reference in a new issue