-Removed bizarre code introduced in a 2 years old PR, fixes #3483
This commit is contained in:
parent
817fd1ab71
commit
dbcca7bea2
1 changed files with 5 additions and 4 deletions
|
@ -80,8 +80,8 @@ void LineEdit::_input_event(InputEvent p_event) {
|
||||||
selection.creating=false;
|
selection.creating=false;
|
||||||
selection.doubleclick=false;
|
selection.doubleclick=false;
|
||||||
|
|
||||||
// notify to show soft keyboard
|
if (OS::get_singleton()->has_virtual_keyboard())
|
||||||
notification(NOTIFICATION_FOCUS_ENTER);
|
OS::get_singleton()->show_virtual_keyboard(get_text(),get_global_rect());
|
||||||
}
|
}
|
||||||
|
|
||||||
update();
|
update();
|
||||||
|
@ -230,8 +230,9 @@ void LineEdit::_input_event(InputEvent p_event) {
|
||||||
case KEY_RETURN: {
|
case KEY_RETURN: {
|
||||||
|
|
||||||
emit_signal( "text_entered",text );
|
emit_signal( "text_entered",text );
|
||||||
// notify to hide soft keyboard
|
if (OS::get_singleton()->has_virtual_keyboard())
|
||||||
notification(NOTIFICATION_FOCUS_EXIT);
|
OS::get_singleton()->hide_virtual_keyboard();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue