diff options
author | ianb96 <ianb96@gmail.com> | 2018-02-03 19:58:51 -0500 |
---|---|---|
committer | ianb96 <ianb96@gmail.com> | 2018-02-03 19:58:51 -0500 |
commit | 4e96e043898cc3e37df9aea4758b765630c9e326 (patch) | |
tree | 00d2f5605e6bd425bf5096d81884a57ec17493ed /editor | |
parent | ea99b90a77228189d6dc38ab7b7ada967d668ed8 (diff) |
disable scene tree shortcuts when in a textfield
Diffstat (limited to 'editor')
-rw-r--r-- | editor/scene_tree_dock.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 41ee5ab286..8506c75a68 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -67,6 +67,9 @@ void SceneTreeDock::_unhandled_key_input(Ref<InputEvent> 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; |