HTML5Window: use HTMLInputElement password instead of text to avoid IME issues on Android (closes openfl/openfl#2564)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user