From 88fd78206051a5c81415ad185432dc811924d08c Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Thu, 21 Jan 2016 23:51:06 +0100 Subject: [PATCH] EditorNode: Ignore unhandled input if there is a dialog visible --- tools/editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 3888ed23a69..eae2d69dd96 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -164,7 +164,7 @@ void EditorNode::_update_title() { void EditorNode::_unhandled_input(const InputEvent& p_event) { - if (p_event.type==InputEvent::KEY && p_event.key.pressed && !p_event.key.echo) { + if (p_event.type==InputEvent::KEY && p_event.key.pressed && !p_event.key.echo && !gui_base->get_viewport()->gui_has_modal_stack()) { switch(p_event.key.scancode) {