diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-01-31 18:09:45 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-01-31 18:09:45 -0300 |
commit | dbcca7bea28482fd26be5ff49bb4eecc0e4bdf1b (patch) | |
tree | a0042c5489282ad2e6b34197ba51a866440aa760 /scene | |
parent | 817fd1ab7186d00ec0cf113b4431bc6d31eb8272 (diff) |
-Removed bizarre code introduced in a 2 years old PR, fixes #3483
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index fdced3f62f..2a62ab30fc 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -80,8 +80,8 @@ void LineEdit::_input_event(InputEvent p_event) { selection.creating=false; selection.doubleclick=false; - // notify to show soft keyboard - notification(NOTIFICATION_FOCUS_ENTER); + if (OS::get_singleton()->has_virtual_keyboard()) + OS::get_singleton()->show_virtual_keyboard(get_text(),get_global_rect()); } update(); @@ -230,8 +230,9 @@ void LineEdit::_input_event(InputEvent p_event) { case KEY_RETURN: { emit_signal( "text_entered",text ); - // notify to hide soft keyboard - notification(NOTIFICATION_FOCUS_EXIT); + if (OS::get_singleton()->has_virtual_keyboard()) + OS::get_singleton()->hide_virtual_keyboard(); + return; } break; |