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

* remove cause of issue

* remove comment
This commit is contained in:
Erick Zhao 2019-08-09 14:10:11 -07:00 committed by Shelley Vohr
parent 57507ca37c
commit 1749af9707

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,