diff options
author | enricoturri1966 <enricoturri@seznam.cz> | 2020-12-07 10:39:43 +0300 |
---|---|---|
committer | enricoturri1966 <enricoturri@seznam.cz> | 2020-12-07 10:39:43 +0300 |
commit | 10be5d1361b05a77cc7833fb5c277755c25b45f0 (patch) | |
tree | 64da8f604953a3a06f72d5071c4b572dead47358 /src/slic3r/GUI/KBShortcutsDialog.cpp | |
parent | ac0584958260ea2bc9ad0efc04d289c3baee9ed1 (diff) |
Replace F5 with Ctrl+Shift+R as shortcut key for reload from disk commands on MAC
Diffstat (limited to 'src/slic3r/GUI/KBShortcutsDialog.cpp')
-rw-r--r-- | src/slic3r/GUI/KBShortcutsDialog.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/slic3r/GUI/KBShortcutsDialog.cpp b/src/slic3r/GUI/KBShortcutsDialog.cpp index febaa0592..64696d6e2 100644 --- a/src/slic3r/GUI/KBShortcutsDialog.cpp +++ b/src/slic3r/GUI/KBShortcutsDialog.cpp @@ -118,7 +118,11 @@ void KBShortcutsDialog::fill_shortcuts() { ctrl + "Y", L("Redo") }, { ctrl + "C", L("Copy to clipboard") }, { ctrl + "V", L("Paste from clipboard") }, +#ifdef __APPLE__ + { ctrl + "Shift+" + "R", L("Reload plater from disk") }, +#else { "F5", L("Reload plater from disk") }, +#endif // __APPLE__ { ctrl + "F", L("Search") }, // Window { ctrl + "1", L("Select Plater Tab") }, @@ -201,6 +205,18 @@ void KBShortcutsDialog::fill_shortcuts() m_full_shortcuts.push_back(std::make_pair(_L("Gizmos"), gizmos_shortcuts)); } + else { + Shortcuts commands_shortcuts = { + { ctrl + "O", L("Open a G-code file") }, +#ifdef __APPLE__ + { ctrl + "Shift+" + "R", L("Reload the plater from disk") }, +#else + { "F5", L("Reload plater from disk") }, +#endif // __APPLE__ + }; + + m_full_shortcuts.push_back(std::make_pair(_L("Commands"), commands_shortcuts)); + } Shortcuts preview_shortcuts = { #if ENABLE_ARROW_KEYS_WITH_SLIDERS |