summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2016-01-21 23:51:06 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2016-01-21 23:51:06 +0100
commit88fd78206051a5c81415ad185432dc811924d08c (patch)
treecfad26ce00069052f6c2b7cd9dd941091eda6847 /tools/editor
parentd1bb868a193d33896df12d289341391ef6d4e8f3 (diff)
EditorNode: Ignore unhandled input if there is a dialog visible
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index 3888ed23a6..eae2d69dd9 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) {