How to allow emojis in password?

183 views
Skip to first unread message

Ricardo Fernández Serrata

unread,
Sep 15, 2021, 3:07:27 AM9/15/21
to Automate
 I don't know if this is a problem with my system keyboard or Android version, but when an Input Dialog has "input type" set to "password", emojis and \n are disabled. I decided to switch to hexadecimal and set the "input type" to 0x20081 because `0x20001 | 0x81 = 0x20081` and now it allows me to input \n but not emojis

Henrik "The Developer" Lindqvist

unread,
Sep 15, 2021, 1:16:26 PM9/15/21
to Automate
\n being disabled can be expected since password is likely single-line.
I don't know the characters allowed in a password, it's not documented:

Ricardo Fernández Serrata

unread,
Sep 15, 2021, 11:05:05 PM9/15/21
to Automate
Thanks for the info. So it seems this is likely to be a problem with the keyboard implementation, maybe if I use another keyboard it would let me use emojis. I was considering using a Web Dialog instead, but I found out that HTML <input type="password"> has the same restrictions on the charset. The only solution that would work for any keyboard is to use multi-row type (I want to allow any Unicode character in the password) but the text won't be hidden.

Is there a way to use JS in a Web Dialog to have better control of the charset? If not, then the best solution would be to create a customized keyboard inside the Web Dialog using HTML, CSS, and JS

Henrik "The Developer" Lindqvist

unread,
Sep 16, 2021, 12:52:48 PM9/16/21
to Automate
Just use the regular "Text" input type , it doesn't display as dots, but it should surely support emojis.
Reply all
Reply to author
Forward
0 new messages