mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Android virtual keyboard respecting LineEdit max length.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user