@@ -2337,7 +2337,7 @@ void ScriptTextEditor::_make_context_menu(bool p_selection, bool p_color, bool p
2337
2337
if (p_color || p_open_docs || p_goto_definition) {
2338
2338
context_menu->add_separator ();
2339
2339
if (p_open_docs) {
2340
- context_menu->add_item ( TTR ( " Lookup Symbol " ), LOOKUP_SYMBOL);
2340
+ context_menu->add_shortcut ( ED_GET_SHORTCUT ( " script_text_editor/goto_symbol " ), LOOKUP_SYMBOL);
2341
2341
}
2342
2342
if (p_color) {
2343
2343
context_menu->add_item (TTR (" Pick Color" ), EDIT_PICK_COLOR);
@@ -2491,6 +2491,7 @@ void ScriptTextEditor::_enable_code_editor() {
2491
2491
edit_hb->add_child (goto_menu);
2492
2492
goto_menu->get_popup ()->add_shortcut (ED_GET_SHORTCUT (" script_text_editor/goto_function" ), SEARCH_LOCATE_FUNCTION);
2493
2493
goto_menu->get_popup ()->add_shortcut (ED_GET_SHORTCUT (" script_text_editor/goto_line" ), SEARCH_GOTO_LINE);
2494
+ goto_menu->get_popup ()->add_shortcut (ED_GET_SHORTCUT (" script_text_editor/goto_symbol" ), LOOKUP_SYMBOL);
2494
2495
goto_menu->get_popup ()->add_separator ();
2495
2496
2496
2497
goto_menu->get_popup ()->add_submenu_node_item (TTR (" Bookmarks" ), bookmarks_menu);
@@ -2675,6 +2676,7 @@ void ScriptTextEditor::register_editor() {
2675
2676
ED_SHORTCUT_OVERRIDE (" script_text_editor/goto_function" , " macos" , KeyModifierMask::CTRL | KeyModifierMask::META | Key::J);
2676
2677
2677
2678
ED_SHORTCUT (" script_text_editor/goto_line" , TTRC (" Go to Line..." ), KeyModifierMask::CMD_OR_CTRL | Key::L);
2679
+ ED_SHORTCUT (" script_text_editor/goto_symbol" , TTRC (" Lookup Symbol" ));
2678
2680
2679
2681
ED_SHORTCUT (" script_text_editor/toggle_breakpoint" , TTRC (" Toggle Breakpoint" ), Key::F9);
2680
2682
ED_SHORTCUT_OVERRIDE (" script_text_editor/toggle_breakpoint" , " macos" , KeyModifierMask::META | KeyModifierMask::SHIFT | Key::B);
0 commit comments