From cc473b948f814a52b383590791b5226d15a8b010 Mon Sep 17 00:00:00 2001 From: SkyJJ Date: Tue, 28 Apr 2020 19:57:45 +0200 Subject: Fix Android LineEdit editing bugs --- servers/display_server.cpp | 2 +- servers/display_server.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'servers') diff --git a/servers/display_server.cpp b/servers/display_server.cpp index ffb05588cc..bd9da6156f 100644 --- a/servers/display_server.cpp +++ b/servers/display_server.cpp @@ -213,7 +213,7 @@ bool DisplayServer::is_console_visible() const { return false; } -void DisplayServer::virtual_keyboard_show(const String &p_existing_text, const Rect2 &p_screen_rect, int p_max_legth) { +void DisplayServer::virtual_keyboard_show(const String &p_existing_text, const Rect2 &p_screen_rect, int p_max_legth, int p_cursor_start, int p_cursor_end) { WARN_PRINT("Virtual keyboard not supported by this display server."); } diff --git a/servers/display_server.h b/servers/display_server.h index f6ba26fc6f..be1014736f 100644 --- a/servers/display_server.h +++ b/servers/display_server.h @@ -280,7 +280,7 @@ public: virtual void console_set_visible(bool p_enabled); virtual bool is_console_visible() const; - virtual void virtual_keyboard_show(const String &p_existing_text, const Rect2 &p_screen_rect = Rect2(), int p_max_legth = -1); + virtual void virtual_keyboard_show(const String &p_existing_text, const Rect2 &p_screen_rect = Rect2(), int p_max_legth = -1, int p_cursor_start = -1, int p_cursor_end = -1); virtual void virtual_keyboard_hide(); // returns height of the currently shown virtual keyboard (0 if keyboard is hidden) -- cgit v1.2.3