fix: avoid losing focus on inputs when opening menu (Windows/Linux) (#19657)
* remove cause of issue * remove comment
This commit is contained in:
parent
57507ca37c
commit
1749af9707
1 changed files with 0 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue