Add "CommandOrControl" to represent "Command" on OS X and "Ctrl" on other platforms.
This commit is contained in:
parent
13261921a7
commit
8237edcf0d
2 changed files with 10 additions and 1 deletions
|
@ -109,6 +109,12 @@ bool StringToAccelerator(const std::string& description,
|
|||
modifiers |= ui::EF_CONTROL_DOWN;
|
||||
} else if (tokens[i] == "command") {
|
||||
modifiers |= ui::EF_COMMAND_DOWN;
|
||||
} else if (tokens[i] == "commandorcontrol" || tokens[i] == "cmdorctrl") {
|
||||
#if defined(OS_MACOSX)
|
||||
modifiers |= ui::EF_COMMAND_DOWN;
|
||||
#else
|
||||
modifiers |= ui::EF_CONTROL_DOWN;
|
||||
#endif
|
||||
} else if (tokens[i] == "alt") {
|
||||
modifiers |= ui::EF_ALT_DOWN;
|
||||
} else if (tokens[i] == "shift") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue