Переглянути джерело

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: {