From f031e2f6651932f7d722360dd6cb713068d9e24d Mon Sep 17 00:00:00 2001 From: ianb96 Date: Sat, 3 Feb 2018 19:58:51 -0500 Subject: [PATCH] disable scene tree shortcuts when in a textfield (cherry picked from commit 4e96e043898cc3e37df9aea4758b765630c9e326) --- editor/scene_tree_dock.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 41ee5ab286d..8506c75a68d 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -67,6 +67,9 @@ void SceneTreeDock::_unhandled_key_input(Ref p_event) { if (get_viewport()->get_modal_stack_top()) return; //ignore because of modal window + if (get_focus_owner() && get_focus_owner()->is_text_field()) + return; + if (!p_event->is_pressed() || p_event->is_echo()) return;