From dbfd5645e5c3dff0878f9b8142dc668e602ef5b2 Mon Sep 17 00:00:00 2001 From: Stijn Seghers Date: Tue, 9 May 2023 16:36:50 +0200 Subject: [PATCH] Fix #6377: Change ctrl-r shortcut --- app/gui/docs/product/shortcuts.md | 5 +++-- app/gui/view/src/project.rs | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/gui/docs/product/shortcuts.md b/app/gui/docs/product/shortcuts.md index e1a6497597974..815a2257e19bc 100644 --- a/app/gui/docs/product/shortcuts.md +++ b/app/gui/docs/product/shortcuts.md @@ -40,6 +40,7 @@ broken and require further investigation. | ctrl+` | Show Code Editor. Please note that the Code Editor implementation is in a very early stage and you should not use it. Even just openning it can cause errors in the IDE. Do not try using the graph editor while having the code editor tab openned. | | cmd+o | Open project | | cmd+s | Save module | +| cmd+shift+r | Restore module from last save | | cmd+z | Undo last action | | cmd+y or cmd + shift + z | Redo last undone action | | cmd+q | Close the application (MacOS) | @@ -48,8 +49,8 @@ broken and require further investigation. | ctrl+w | Close the application (Windows, Linux) | | :warning: ctrl+p | Toggle profiling mode | | escape | Cancel current action. For example, drop currently dragged connection. | -| cmd+shift+t | Terminate the program execution | -| cmd+shift+r | Re-execute the program | +| cmd+alt+t | Terminate the program execution | +| cmd+alt+r | Re-execute the program | | cmd+shift+k | Switch the execution environment to Design. | | cmd+shift+l | Switch the execution environment to Live. | diff --git a/app/gui/view/src/project.rs b/app/gui/view/src/project.rs index 7f1e7c4db915a..b92539147cc83 100644 --- a/app/gui/view/src/project.rs +++ b/app/gui/view/src/project.rs @@ -701,14 +701,14 @@ impl application::View for View { (Press, "", "cmd alt shift t", "toggle_style"), (Press, "", "cmd alt p", "toggle_component_browser_private_entries_visibility"), (Press, "", "cmd s", "save_project_snapshot"), - (Press, "", "cmd r", "restore_project_snapshot"), + (Press, "", "cmd shift r", "restore_project_snapshot"), (Press, "", "cmd z", "undo"), (Press, "", "cmd y", "redo"), (Press, "", "cmd shift z", "redo"), (Press, "!debug_mode", DEBUG_MODE_SHORTCUT, "enable_debug_mode"), (Press, "debug_mode", DEBUG_MODE_SHORTCUT, "disable_debug_mode"), - (Press, "", "cmd shift t", "execution_context_interrupt"), - (Press, "", "cmd shift r", "execution_context_restart"), + (Press, "", "cmd alt t", "execution_context_interrupt"), + (Press, "", "cmd alt r", "execution_context_restart"), // TODO(#6179): Remove this temporary shortcut when Play button is ready. (Press, "", "ctrl shift b", "toggle_read_only"), ]