summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2016-05-28 18:22:54 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2016-05-28 18:22:54 +0200
commit65fa8f91ca979d61cebed8eddd4c8a5bc5317ca7 (patch)
tree619d4cf6b1addc6a329d8bb83c8708f44919d2c1
parent9daaa709207adf77eb5cf7c440782eaad3a3f7b2 (diff)
TextEdit: Avoid capturing KEY_ESCAPE when there is no completion hint
-rw-r--r--scene/gui/text_edit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 03024daff5..3199a7f15c 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -1892,7 +1892,8 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
if (completion_hint!="") {
completion_hint="";
update();
-
+ } else {
+ scancode_handled=false;
}
} break;
case KEY_TAB: {