From b8dfe2cca922eabe12cdb9f0876efefae3fc2902 Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Sat, 21 Dec 2024 21:10:09 +0300 Subject: [PATCH] Editor: Restore old `Ctrl+Click` behavior --- editor/plugins/script_text_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 94e3c8ba7b0..370c399786c 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -968,7 +968,7 @@ void ScriptTextEditor::_lookup_symbol(const String &p_symbol, int p_row, int p_c } else if (lc_error == OK) { _goto_line(p_row); - if (!result.class_name.is_empty() && EditorHelp::get_doc_data()->class_list.has(result.class_name)) { + if (!result.class_name.is_empty() && EditorHelp::get_doc_data()->class_list.has(result.class_name) && !EditorHelp::get_doc_data()->class_list[result.class_name].is_script_doc) { switch (result.type) { case ScriptLanguage::LOOKUP_RESULT_CLASS: { emit_signal(SNAME("go_to_help"), "class_name:" + result.class_name);