Fix menubar toggle alt key detection on focus (#12235)

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:
trop-devel[bot]
2018-03-13 11:25:55 +09:00
committed by Charles Kerr
parent 176abdbd80
commit af4dfcf6fe

View File

@@ -1139,6 +1139,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(