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") {
## Notes on accelerator
-On Linux and Windows, the `Command` key would not have any effect.
+On Linux and Windows, the `Command` key would not have any effect, you can
+use `CommandOrControl` which represents `Command` on OS X and `Control` on
+Linux and Windows to define some accelerators, you can also use its short
+alias `CmdOrCtrl`.