Merge pull request #5321 from Paulb23/caret_hidden_issue_5320
Fixed caret not drawing on focus regain
This commit is contained in:
commit
029ca80dca
|
@ -1209,6 +1209,9 @@ void TextEdit::_notification(int p_what) {
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_FOCUS_ENTER: {
|
case NOTIFICATION_FOCUS_ENTER: {
|
||||||
|
|
||||||
|
if (!caret_blink_enabled) {
|
||||||
|
draw_caret = true;
|
||||||
|
}
|
||||||
if (OS::get_singleton()->has_virtual_keyboard())
|
if (OS::get_singleton()->has_virtual_keyboard())
|
||||||
OS::get_singleton()->show_virtual_keyboard(get_text(),get_global_rect());
|
OS::get_singleton()->show_virtual_keyboard(get_text(),get_global_rect());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue