Skip to content

Commit

Permalink
Revert "fix: make sure that menu bar gets focus even when you click a…
Browse files Browse the repository at this point in the history
…n item to focus it first (#19710)" (#20035)

This reverts commit 27b2747.
  • Loading branch information
trop[bot] authored and codebytere committed Sep 4, 2019
1 parent 34c6e05 commit a8ec0de
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions atom/browser/ui/views/menu_bar.cc
Expand Up @@ -268,12 +268,6 @@ void MenuBar::OnMenuButtonClicked(views::Button* source,
if (!window_->HasFocus())
window_->RequestFocus();

// This ensures that if you focus the menubar by clicking on an item, you can
// still use the arrow keys to move around
if (GetPaneFocusTraversable() == nullptr) {
SetPaneFocus(source);
}

int id = source->tag();
AtomMenuModel::ItemType type = menu_model_->GetTypeAt(id);
if (type != AtomMenuModel::TYPE_SUBMENU) {
Expand Down

0 comments on commit a8ec0de

Please sign in to comment.