Browse Source

fix: Revert "fix: make sure that menu bar gets focus even when you click an item to focus it first (#19710)" (#20019)

This reverts commit 27b2747b615ff2d300ccd9199e34b41409005c6b.
Samuel Attard 5 years ago
parent
commit
654338693f
1 changed files with 0 additions and 6 deletions
  1. 0 6
      shell/browser/ui/views/menu_bar.cc

+ 0 - 6
shell/browser/ui/views/menu_bar.cc

@@ -270,12 +270,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) {