diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-20 17:06:46 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-20 17:06:46 +0200 |
commit | 45f6aaeb10efc8731e8e82a31e1c1c70c774f8a1 (patch) | |
tree | 59477f6101798e7dfb8e3030924d15e65878e7b4 | |
parent | 3bd2a6ad6e50d012057711ce82d01d7a51baf90f (diff) | |
parent | 82c2a74646b12b3f0eea5a0ebd7154320b3443da (diff) | |
download | redot-engine-45f6aaeb10efc8731e8e82a31e1c1c70c774f8a1.tar.gz |
Merge pull request #91887 from minionprocyk/master
Use Option+Cmd+Left/Right for script editor history navigation on macOS
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index eb6282ca0c..63eecd357d 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -4122,6 +4122,9 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) { file_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/history_previous", TTR("History Previous"), KeyModifierMask::ALT | Key::LEFT), WINDOW_PREV); file_menu->get_popup()->add_shortcut(ED_SHORTCUT("script_editor/history_next", TTR("History Next"), KeyModifierMask::ALT | Key::RIGHT), WINDOW_NEXT); + ED_SHORTCUT_OVERRIDE("script_editor/history_previous", "macos", KeyModifierMask::ALT | KeyModifierMask::META | Key::LEFT); + ED_SHORTCUT_OVERRIDE("script_editor/history_next", "macos", KeyModifierMask::ALT | KeyModifierMask::META | Key::RIGHT); + file_menu->get_popup()->add_separator(); theme_submenu = memnew(PopupMenu); |