Fix uneditable LineEdit, TexEdit and CodeEdit Virtual Keyboard popup
This commit is contained in:
parent
04692d83cb
commit
14dd595447
2 changed files with 9 additions and 3 deletions
|
@ -548,8 +548,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;
|
||||||
|
|
|
@ -1598,7 +1598,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: {
|
||||||
|
@ -2001,9 +2003,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()) {
|
||||||
|
|
Loading…
Reference in a new issue