HTML5Window: use HTMLInputElement password instead of text to avoid IME issues on Android (closes openfl/openfl#2564)

This commit is contained in:
Josh Tynjala
2023-01-11 15:59:49 -08:00
parent 0a0a6f17a6
commit e03cc18d31

View File

@@ -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";