Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenricoturri1966 <enricoturri@seznam.cz>2020-12-07 10:39:43 +0300
committerenricoturri1966 <enricoturri@seznam.cz>2020-12-07 10:39:43 +0300
commit10be5d1361b05a77cc7833fb5c277755c25b45f0 (patch)
tree64da8f604953a3a06f72d5071c4b572dead47358 /src/slic3r/GUI/KBShortcutsDialog.cpp
parentac0584958260ea2bc9ad0efc04d289c3baee9ed1 (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.cpp16
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