Browse Source

TextEdit: Avoid capturing KEY_ESCAPE when there is no completion hint

Ignacio Etcheverry 9 năm trước cách đây
mục cha
commit
65fa8f91ca
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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: {