fix: avoid losing focus on inputs when opening menu (Windows/Linux) (#19706)

* remove cause of issue

* remove comment
This commit is contained in:
trop[bot]
2019-08-12 19:45:08 -07:00
committed by Shelley Vohr
parent a9f69bf732
commit 356045ff57

View File

@@ -275,9 +275,6 @@ void MenuBar::OnMenuButtonClicked(views::Button* source,
return;
}
GetFocusManager()->SetFocusedViewWithReason(
source, views::FocusManager::kReasonFocusTraversal);
// Deleted in MenuDelegate::OnMenuClosed
MenuDelegate* menu_delegate = new MenuDelegate(this);
menu_delegate->RunMenu(menu_model_->GetSubmenuModelAt(id), source,