Merge pull request #12167 from lyallh/menubar-autohide-fix

Fix menubar toggle alt key detection on focus
This commit is contained in:
Cheng Zhao 2018-03-09 10:13:32 +09:00 committed by GitHub
commit 44c66fc284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(