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:
authorOleksandra Yushchenko <yusanka@gmail.com>2021-05-11 12:02:12 +0300
committerGitHub <noreply@github.com>2021-05-11 12:02:12 +0300
commitab886e037bf577db28ec98828b6282dc57431f2d (patch)
treeec35efa389ddc38745582f1e86cf2b6878aaf1b6 /src/slic3r/GUI/KBShortcutsDialog.cpp
parent13b0757b8b4131bebaf58171ab21892ceccc80de (diff)
Implementation for #6216
* Implementation for #6216 - Make number keys select extruder when object treeview has focus + deleted unused extruder_selection() + Fixed notification after splitting of the solid object * Follow up https://github.com/prusa3d/PrusaSlicer/commit/85a10268b9eabfa8aac4c7b1361136b40b75f9f0 - OSX implementation + Added shortcuts description to the "Keyboard Shortcuts" dialog * Workaround to use "+/-" and numbers shortcuts on Linux + Fixed build on Linux * OSX specific: fixed a work of keyboard accelerators from numbers on NumPad keyboard * KBShortcutsDialog: fixed shortcuts for "Preferences" and "Show/Hide 3Dconnexion devices settings dialog, if enabled" under osx and "Set Printable/Unprintable" and "Set extruder" under Linux + OSX specific: Added minimize of the application on "Cmd+M" * Hot-fix for https://github.com/prusa3d/PrusaSlicer/commit/6efeb9d6b433f49aaca8ee42ed02d824c452eb8e * Removed Linux specific workaround
Diffstat (limited to 'src/slic3r/GUI/KBShortcutsDialog.cpp')
-rw-r--r--src/slic3r/GUI/KBShortcutsDialog.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/slic3r/GUI/KBShortcutsDialog.cpp b/src/slic3r/GUI/KBShortcutsDialog.cpp
index 1c451672c..d766ff5fd 100644
--- a/src/slic3r/GUI/KBShortcutsDialog.cpp
+++ b/src/slic3r/GUI/KBShortcutsDialog.cpp
@@ -109,7 +109,11 @@ void KBShortcutsDialog::fill_shortcuts()
{ "0-6", L("Camera view") },
{ "E", L("Show/Hide object/instance labels") },
// Configuration
+#ifdef __APPLE__
+ { ctrl + ",", L("Preferences") },
+#else
{ ctrl + "P", L("Preferences") },
+#endif
// Help
{ "?", L("Show keyboard shortcuts list") }
};
@@ -150,7 +154,12 @@ void KBShortcutsDialog::fill_shortcuts()
#ifdef _WIN32
{ ctrl + "M", L("Show/Hide 3Dconnexion devices settings dialog, if enabled") },
#else
+#ifdef __APPLE__
+ { ctrl + "Shift+M", L("Show/Hide 3Dconnexion devices settings dialog") },
+ { ctrl + "M", L("Minimize application") },
+#else
{ ctrl + "M", L("Show/Hide 3Dconnexion devices settings dialog") },
+#endif // __APPLE__
#endif // _WIN32
#if ENABLE_RENDER_PICKING_PASS
// Don't localize debugging texts.
@@ -171,6 +180,20 @@ void KBShortcutsDialog::fill_shortcuts()
};
m_full_shortcuts.push_back({ { _L("Gizmos"), _L("The following shortcuts are applicable when the specified gizmo is active") }, gizmos_shortcuts });
+
+ Shortcuts object_list_shortcuts = {
+#if defined (__linux__)
+ { alt + "P", L("Set selected items as Ptrintable/Unprintable") },
+ { alt + "0", L("Set default extruder for the selected items") },
+ { alt + "1-9", L("Set extruder number for the selected items") },
+#else
+ { "P", L("Set selected items as Ptrintable/Unprintable") },
+ { "0", L("Set default extruder for the selected items") },
+ { "1-9", L("Set extruder number for the selected items") },
+#endif
+ };
+
+ m_full_shortcuts.push_back({ { _L("Objects List"), "" }, object_list_shortcuts });
}
else {
Shortcuts commands_shortcuts = {