Skip to content

Commit

Permalink
fix: avoid losing focus on inputs when opening menu (Windows/Linux) (#…
Browse files Browse the repository at this point in the history
…19708)

* remove cause of issue

* remove comment
  • Loading branch information
trop[bot] authored and codebytere committed Aug 13, 2019
1 parent 4e1a5a2 commit 779f285
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions atom/browser/ui/views/menu_bar.cc
Expand Up @@ -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,
Expand Down

0 comments on commit 779f285

Please sign in to comment.