diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-06-30 13:47:51 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-06-30 13:47:51 +0000 |
| commit | 72f835c00565835a536531cd81dc6d9a607b615a (patch) | |
| tree | 6e95f3a3dfc711aa266a4839b24c5c8a55778dde /src/shortcuts.cpp | |
| parent | Merge branch 'master' of gitlab.com:inkscape/inkscape (diff) | |
| download | inkscape-72f835c00565835a536531cd81dc6d9a607b615a.tar.gz inkscape-72f835c00565835a536531cd81dc6d9a607b615a.zip | |
Use Meta for shortcuts on Mac OS
Diffstat (limited to 'src/shortcuts.cpp')
| -rw-r--r-- | src/shortcuts.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shortcuts.cpp b/src/shortcuts.cpp index 0cb0285f8..8a8d36d5a 100644 --- a/src/shortcuts.cpp +++ b/src/shortcuts.cpp @@ -625,6 +625,12 @@ static void read_shortcuts_file(char const *filename, bool const is_user_set) { modifiers |= SP_SHORTCUT_HYPER_MASK; } else if (!strcmp(mod, "Meta")) { modifiers |= SP_SHORTCUT_META_MASK; + } else if (!strcmp(mod, "Primary")) { +#ifdef __APPLE__ + modifiers |= SP_SHORTCUT_META_MASK; +#else + modifiers |= SP_SHORTCUT_CONTROL_MASK; +#endif } else { g_warning("Unknown modifier %s for %s", mod, verb_name); } |
