Forráskód Böngészése

Merge pull request #106526 from roughbits01/line-edit-select-all-web

[Web] Fix `LineEdit` `select_all_on_focus` behavior when using a virtual keyboard
Thaddeus Crews 2 hónapja
szülő
commit
a39a83a990
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      scene/gui/line_edit.cpp

+ 1 - 1
scene/gui/line_edit.cpp

@@ -75,7 +75,7 @@ void LineEdit::_edit(bool p_show_virtual_keyboard) {
 	editing = true;
 	_validate_caret_can_draw();
 
-	if (p_show_virtual_keyboard) {
+	if (p_show_virtual_keyboard && !pending_select_all_on_focus) {
 		show_virtual_keyboard();
 	}
 	queue_redraw();