1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Fix uneditable LineEdit, TexEdit and CodeEdit Virtual Keyboard popup

This commit is contained in:
Anish Mishra
2024-10-09 16:32:52 +05:30
parent 04692d83cb
commit 14dd595447
2 changed files with 9 additions and 3 deletions

View File

@@ -548,7 +548,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();

View File

@@ -1598,7 +1598,9 @@ void TextEdit::_notification(int p_what) {
draw_caret = true;
}
_show_virtual_keyboard();
if (editable) {
_show_virtual_keyboard();
}
} break;
case NOTIFICATION_FOCUS_EXIT: {
@@ -2001,7 +2003,9 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
}
}
_show_virtual_keyboard();
if (editable) {
_show_virtual_keyboard();
}
}
}