1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Merge pull request #98012 from syntaxerror247/lineEdit-bug-fix

Fix uneditable `LineEdit`, `TextEdit` and `CodeEdit` virtual keyboard popup on mobile
This commit is contained in:
Thaddeus Crews
2024-11-27 10:47:15 -06:00
2 changed files with 9 additions and 3 deletions

View File

@@ -550,8 +550,10 @@ void LineEdit::gui_input(const Ref<InputEvent> &p_event) {
pending_select_all_on_focus = false; pending_select_all_on_focus = false;
} }
if (editable) {
show_virtual_keyboard(); show_virtual_keyboard();
} }
}
queue_redraw(); queue_redraw();
return; return;

View File

@@ -1605,7 +1605,9 @@ void TextEdit::_notification(int p_what) {
draw_caret = true; draw_caret = true;
} }
if (editable) {
_show_virtual_keyboard(); _show_virtual_keyboard();
}
} break; } break;
case NOTIFICATION_FOCUS_EXIT: { case NOTIFICATION_FOCUS_EXIT: {
@@ -2008,9 +2010,11 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
} }
} }
if (editable) {
_show_virtual_keyboard(); _show_virtual_keyboard();
} }
} }
}
const Ref<InputEventPanGesture> pan_gesture = p_gui_input; const Ref<InputEventPanGesture> pan_gesture = p_gui_input;
if (pan_gesture.is_valid()) { if (pan_gesture.is_valid()) {