Merge pull request #1656 from player-03/password-input-android

Use "password" text input only on Android.
This commit is contained in:
player-03
2023-04-16 13:29:57 -04:00
committed by GitHub

View File

@@ -1119,7 +1119,7 @@ class HTML5Window
textInput.type = 'text'; textInput.type = 'text';
#else #else
// use password instead of text to avoid IME issues on Android // use password instead of text to avoid IME issues on Android
textInput.type = 'password'; textInput.type = Browser.navigator.userAgent.indexOf("Android") >= 0 ? 'password' : 'text';
#end #end
textInput.style.position = 'absolute'; textInput.style.position = 'absolute';
textInput.style.opacity = "0"; textInput.style.opacity = "0";