You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
disable scene tree shortcuts when in a textfield
(cherry picked from commit 4e96e04389)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
4bed14f69b
commit
f031e2f665
@@ -67,6 +67,9 @@ void SceneTreeDock::_unhandled_key_input(Ref<InputEvent> p_event) {
|
|||||||
if (get_viewport()->get_modal_stack_top())
|
if (get_viewport()->get_modal_stack_top())
|
||||||
return; //ignore because of modal window
|
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())
|
if (!p_event->is_pressed() || p_event->is_echo())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user