Explorar o código

Merge pull request #5941 from neikeq/pr-regression-5271

LineEdit: Fix event handled as text when a mod key is pressed
Rémi Verschelde %!s(int64=9) %!d(string=hai) anos
pai
achega
8a01655db5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/gui/line_edit.cpp

+ 1 - 1
scene/gui/line_edit.cpp

@@ -468,7 +468,7 @@ void LineEdit::_input_event(InputEvent p_event) {
 
 				if (handled) {
 					accept_event();
-				} else {
+				} else if (!k.mod.alt && !k.mod.command) {
 					if (k.unicode>=32 && k.scancode!=KEY_DELETE) {
 
 						if (editable) {