mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: window menu should handle keys correctly (#21434)
* fix: overriding AccessiblePaneView's methods * chore: add CL link
This commit is contained in:
@@ -71,6 +71,8 @@ class MenuBar : public views::AccessiblePaneView,
|
||||
|
||||
// views::AccessiblePaneView:
|
||||
bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
|
||||
bool SetPaneFocus(views::View* initial_focus) override;
|
||||
void RemovePaneFocus() override;
|
||||
|
||||
protected:
|
||||
// views::View:
|
||||
@@ -82,9 +84,6 @@ class MenuBar : public views::AccessiblePaneView,
|
||||
const ui::Event* event) override;
|
||||
void OnThemeChanged() override;
|
||||
|
||||
bool SetPaneFocus(views::View* initial_focus);
|
||||
void RemovePaneFocus();
|
||||
|
||||
private:
|
||||
friend class MenuBarColorUpdater;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user