Only use default accelerator in Windows/Linux app menu
This commit is contained in:
parent
6381f44f26
commit
2faf00dc19
21 changed files with 125 additions and 69 deletions
|
@ -28,7 +28,7 @@ class AtomMenuModel : public ui::SimpleMenuModel {
|
|||
bool GetAcceleratorForCommandId(int command_id,
|
||||
ui::Accelerator* accelerator) {
|
||||
return GetAcceleratorForCommandIdWithParams(
|
||||
command_id, true, accelerator);
|
||||
command_id, false, accelerator);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -55,6 +55,9 @@ class AtomMenuModel : public ui::SimpleMenuModel {
|
|||
// ui::SimpleMenuModel:
|
||||
void MenuClosed() override;
|
||||
|
||||
using SimpleMenuModel::GetSubmenuModelAt;
|
||||
AtomMenuModel* GetSubmenuModelAt(int index);
|
||||
|
||||
private:
|
||||
Delegate* delegate_; // weak ref.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue