diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-23 08:20:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 08:20:24 +0100 |
commit | c2e07db071a30e8b4cb8073f15d7fc6dbf9c8a1d (patch) | |
tree | e71ef28498300fe971845e90b90a19426a7efb54 /scene/gui | |
parent | f03a121b6d83fc93f1c0d0aeb4308dda112f444f (diff) | |
parent | a3bcdbeb78715fdc30a130935bd21cb44b969ded (diff) |
Merge pull request #35438 from MadEqua/virtual-keyboard-line-edit
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: { |