Android virtual keyboard respecting LineEdit max length.

This commit is contained in:
Bruno Lourenço
2020-01-22 15:13:36 +00:00
parent 409de53e72
commit a3bcdbeb78
13 changed files with 31 additions and 18 deletions

View File

@@ -559,10 +559,10 @@ int OS_Android::get_virtual_keyboard_height() const {
// return 0;
}
void OS_Android::show_virtual_keyboard(const String &p_existing_text, const Rect2 &p_screen_rect) {
void OS_Android::show_virtual_keyboard(const String &p_existing_text, const Rect2 &p_screen_rect, int p_max_input_length) {
if (godot_io_java->has_vk()) {
godot_io_java->show_vk(p_existing_text);
godot_io_java->show_vk(p_existing_text, p_max_input_length);
} else {
ERR_PRINT("Virtual keyboard not available");