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 @@ -3445,7 +3445,7 @@ void ScriptEditor::input(const Ref<InputEvent> &p_event) {
34453445void ScriptEditor::shortcut_input (const Ref<InputEvent> &p_event) {
34463446 ERR_FAIL_COND (p_event.is_null ());
34473447
3448- if (!is_visible_in_tree () || !p_event->is_pressed () || p_event-> is_echo () ) {
3448+ if (!is_visible_in_tree () || !p_event->is_pressed ()) {
34493449 return ;
34503450 }
34513451 if (ED_IS_SHORTCUT (" script_editor/next_script" , p_event)) {
@@ -3475,6 +3475,10 @@ void ScriptEditor::shortcut_input(const Ref<InputEvent> &p_event) {
34753475 accept_event ();
34763476 }
34773477
3478+ if (p_event->is_echo ()) {
3479+ return ;
3480+ }
3481+
34783482 Callable custom_callback = EditorContextMenuPluginManager::get_singleton ()->match_custom_shortcut (EditorContextMenuPlugin::CONTEXT_SLOT_SCRIPT_EDITOR, p_event);
34793483 if (custom_callback.is_valid ()) {
34803484 Ref<Resource> resource;
You can’t perform that action at this time.
0 commit comments