You've already forked godot
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:
@@ -550,7 +550,9 @@ void LineEdit::gui_input(const Ref<InputEvent> &p_event) {
|
||||
pending_select_all_on_focus = false;
|
||||
}
|
||||
|
||||
show_virtual_keyboard();
|
||||
if (editable) {
|
||||
show_virtual_keyboard();
|
||||
}
|
||||
}
|
||||
|
||||
queue_redraw();
|
||||
|
||||
@@ -1605,7 +1605,9 @@ void TextEdit::_notification(int p_what) {
|
||||
draw_caret = true;
|
||||
}
|
||||
|
||||
_show_virtual_keyboard();
|
||||
if (editable) {
|
||||
_show_virtual_keyboard();
|
||||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_FOCUS_EXIT: {
|
||||
@@ -2008,7 +2010,9 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
|
||||
}
|
||||
}
|
||||
|
||||
_show_virtual_keyboard();
|
||||
if (editable) {
|
||||
_show_virtual_keyboard();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user