From e03cc18d31392b40f8079c4d53b17830abbc9dca Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Wed, 11 Jan 2023 15:59:49 -0800 Subject: [PATCH] HTML5Window: use HTMLInputElement password instead of text to avoid IME issues on Android (closes openfl/openfl#2564) --- src/lime/_internal/backend/html5/HTML5Window.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lime/_internal/backend/html5/HTML5Window.hx b/src/lime/_internal/backend/html5/HTML5Window.hx index 99128f5d8..293e50613 100644 --- a/src/lime/_internal/backend/html5/HTML5Window.hx +++ b/src/lime/_internal/backend/html5/HTML5Window.hx @@ -1115,7 +1115,8 @@ class HTML5Window if (textInput == null) { textInput = cast Browser.document.createElement('input'); - textInput.type = 'text'; + // use password instead of text to avoid IME issues on Android + textInput.type = 'password'; textInput.style.position = 'absolute'; textInput.style.opacity = "0"; textInput.style.color = "transparent";