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 /core/os | |
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 'core/os')
-rw-r--r-- | core/os/os.cpp | 2 | ||||
-rw-r--r-- | core/os/os.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp index 81dea159a6..1ed9484208 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -221,7 +221,7 @@ bool OS::has_virtual_keyboard() const { return false; } -void OS::show_virtual_keyboard(const String &p_existing_text, const Rect2 &p_screen_rect) { +void OS::show_virtual_keyboard(const String &p_existing_text, const Rect2 &p_screen_rect, int p_max_input_length) { } void OS::hide_virtual_keyboard() { diff --git a/core/os/os.h b/core/os/os.h index 80b5843bd5..89b3414b3e 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -380,7 +380,7 @@ public: }; virtual bool has_virtual_keyboard() const; - virtual void show_virtual_keyboard(const String &p_existing_text, const Rect2 &p_screen_rect = Rect2()); + virtual void show_virtual_keyboard(const String &p_existing_text, const Rect2 &p_screen_rect = Rect2(), int p_max_input_length = -1); virtual void hide_virtual_keyboard(); // returns height of the currently shown virtual keyboard (0 if keyboard is hidden) |