File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3441,7 +3441,7 @@ void ScriptEditor::input(const Ref<InputEvent> &p_event) {
34413441void ScriptEditor::shortcut_input (const Ref<InputEvent> &p_event) {
34423442 ERR_FAIL_COND (p_event.is_null ());
34433443
3444- if (!is_visible_in_tree () || !p_event->is_pressed () || p_event-> is_echo () ) {
3444+ if (!is_visible_in_tree () || !p_event->is_pressed ()) {
34453445 return ;
34463446 }
34473447 if (ED_IS_SHORTCUT (" script_editor/next_script" , p_event)) {
@@ -3471,6 +3471,10 @@ void ScriptEditor::shortcut_input(const Ref<InputEvent> &p_event) {
34713471 accept_event ();
34723472 }
34733473
3474+ if (p_event->is_echo ()) {
3475+ return ;
3476+ }
3477+
34743478 Callable custom_callback = EditorContextMenuPluginManager::get_singleton ()->match_custom_shortcut (EditorContextMenuPlugin::CONTEXT_SLOT_SCRIPT_EDITOR, p_event);
34753479 if (custom_callback.is_valid ()) {
34763480 Ref<Resource> resource;
You can’t perform that action at this time.
0 commit comments