Only use default accelerator in Windows/Linux app menu

This commit is contained in:
Kevin Sawicki 2016-07-06 16:04:18 -07:00
parent 6381f44f26
commit 2faf00dc19
21 changed files with 125 additions and 69 deletions

View file

@ -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.