Merge pull request #91887 from minionprocyk/master

Use Option+Cmd+Left/Right for script editor history navigation on macOS
This commit is contained in:
Rémi Verschelde 2024-05-20 17:06:46 +02:00
commit 45f6aaeb10
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);