Skip to content

Commit

Permalink
Fix uneditable LineEdit, TexEdit and CodeEdit Virtual Keyboard popup
Browse files Browse the repository at this point in the history
  • Loading branch information
syntaxerror247 committed Oct 17, 2024
1 parent 04692d8 commit 14dd595
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scene/gui/line_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
8 changes: 6 additions & 2 deletions scene/gui/text_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -2001,7 +2003,9 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
}
}

_show_virtual_keyboard();
if (editable) {
_show_virtual_keyboard();
}
}
}

Expand Down

0 comments on commit 14dd595

Please sign in to comment.