Skip to content

Commit

Permalink
Merge pull request #91887 from minionprocyk/master
Browse files Browse the repository at this point in the history
Use Option+Cmd+Left/Right for script editor history navigation on macOS
  • Loading branch information
akien-mga committed May 20, 2024
2 parents 3bd2a6a + 82c2a74 commit 45f6aae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/plugins/script_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 45f6aae

Please sign in to comment.