[TIMOB-27869] Android: KEYBOARD_TYPE_ASCII should not allow emoji like iOS
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-08-11T14:53:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.1.0 |
Components | Android |
Labels | TextArea, TextField, android, emoji, keyboardType, parity |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2020-04-28T00:47:46.000+0000 |
Updated | 2020-08-11T14:53:52.000+0000 |
Description
*Summary:*
On iOS,
KEYBOARD_TYPE_ASCII
allows the end-user to enter all characters (including non-English letters) except emoji.
On Android, this keyboard type accepts all characters. It should be changed to filter out emoji characters for parity with iOS. If you want a keyboard that accepts all characters, then use KEYBOARD_TYPE_DEFAULT
instead.
*Use-Case:*
You would normally use KEYBOARD_TYPE_ASCII
for login/user name entry. Emoji characters are not typically appropriate for this type of input.
*Test Code:*
var window = Ti.UI.createWindow();
window.add(Ti.UI.createTextField({
keyboardType: Ti.UI.KEYBOARD_TYPE_ASCII,
width: "90%",
}));
window.open();
PR (master): https://github.com/appcelerator/titanium_mobile/pull/11662
FR Passed, Waiting on Jenkins build.
merged to master for 9.1.0 target
*Closing ticket*. Improvement verified in SDK version
9.1.0.v20200810120239
. *Test and other information can be found at:* https://github.com/appcelerator/titanium_mobile/pull/11662