From 8e3499a96146d704a652815860e9647042db5c80 Mon Sep 17 00:00:00 2001 From: fish Date: Sat, 11 Oct 2025 20:09:55 -0700 Subject: [PATCH] Allow keyboard echo for script_editor/next_script, script_editor/prev_script, script_editor/window_move_up, and script_editor/window_move_down events --- editor/script/script_editor_plugin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index fc68eab34fc..b823df924c9 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -3441,7 +3441,7 @@ void ScriptEditor::input(const Ref &p_event) { void ScriptEditor::shortcut_input(const Ref &p_event) { ERR_FAIL_COND(p_event.is_null()); - if (!is_visible_in_tree() || !p_event->is_pressed() || p_event->is_echo()) { + if (!is_visible_in_tree() || !p_event->is_pressed()) { return; } if (ED_IS_SHORTCUT("script_editor/next_script", p_event)) { @@ -3471,6 +3471,10 @@ void ScriptEditor::shortcut_input(const Ref &p_event) { accept_event(); } + if (p_event->is_echo()) { + return; + } + Callable custom_callback = EditorContextMenuPluginManager::get_singleton()->match_custom_shortcut(EditorContextMenuPlugin::CONTEXT_SLOT_SCRIPT_EDITOR, p_event); if (custom_callback.is_valid()) { Ref resource;