浏览代码

TextEdit: Avoid capturing KEY_ESCAPE when there is no completion hint

Ignacio Etcheverry 9 年之前
父节点
当前提交
65fa8f91ca
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      scene/gui/text_edit.cpp

+ 2 - 1
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: {