mirror of
https://github.com/electron/electron.git
synced 2026-01-27 08:18:28 -05:00
Merge pull request #125 from atom/dont-map-meta
Don't map command to ctrl
This commit is contained in:
@@ -108,13 +108,7 @@ bool StringToAccelerator(const std::string& description,
|
||||
} else if (tokens[i] == "ctrl") {
|
||||
modifiers |= ui::EF_CONTROL_DOWN;
|
||||
} else if (tokens[i] == "command") {
|
||||
// The "Command" would be translated to "Ctrl" on platforms other than
|
||||
// OS X.
|
||||
#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") {
|
||||
|
||||
Reference in New Issue
Block a user