Merge pull request #1656 from player-03/password-input-android
Use "password" text input only on Android.
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user