Merge pull request #16373 from ianb96/scene_shortcut_disable

Disable scene tree shortcuts when in a text field
This commit is contained in:
Rémi Verschelde 2018-02-13 11:23:58 +01:00 committed by GitHub
commit 81dee310e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;