Use "password" text input only on Android.

Using `userAgent` to tell whether the app is running on Android. This isn't foolproof, but will work more often than the previous approach (where you chose at compile time and your choice applied to all devices). Resolves #1655.
This commit is contained in:
player-03
2023-04-05 16:36:36 -04:00
committed by GitHub
parent 0f694662f9
commit adda161ec6

View File

@@ -1119,7 +1119,7 @@ class HTML5Window
textInput.type = 'text';
#else
// 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
textInput.style.position = 'absolute';
textInput.style.opacity = "0";