diff options
author | Bruno Lourenço <madequa@users.noreply.github.com> | 2020-01-22 15:13:36 +0000 |
---|---|---|
committer | Bruno Lourenço <madequa@users.noreply.github.com> | 2020-01-23 01:52:49 +0000 |
commit | a3bcdbeb78715fdc30a130935bd21cb44b969ded (patch) | |
tree | 05cc51c6aad62fb09653d60ea70dbe3d2684cc0d /scene/gui | |
parent | 409de53e7253a0e900b09aedb983d998ccf30659 (diff) |
Android virtual keyboard respecting LineEdit max length.
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/line_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 0f3328dac5..7afc3b0d00 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -128,7 +128,7 @@ void LineEdit::_gui_input(Ref<InputEvent> p_event) { selection.doubleclick = false; if (OS::get_singleton()->has_virtual_keyboard()) - OS::get_singleton()->show_virtual_keyboard(text, get_global_rect()); + OS::get_singleton()->show_virtual_keyboard(text, get_global_rect(), max_length); } update(); @@ -913,7 +913,7 @@ void LineEdit::_notification(int p_what) { OS::get_singleton()->set_ime_position(get_global_position() + cursor_pos); if (OS::get_singleton()->has_virtual_keyboard()) - OS::get_singleton()->show_virtual_keyboard(text, get_global_rect()); + OS::get_singleton()->show_virtual_keyboard(text, get_global_rect(), max_length); } break; case NOTIFICATION_FOCUS_EXIT: { |