Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27869] Android: KEYBOARD_TYPE_ASCII should not allow emoji like iOS

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2020-08-11T14:53:52.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.1.0
ComponentsAndroid
LabelsTextArea, TextField, android, emoji, keyboardType, parity
ReporterJoshua Quick
AssigneeJoshua Quick
Created2020-04-28T00:47:46.000+0000
Updated2020-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();

Comments

  1. Joshua Quick 2020-04-28

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/11662
  2. Samir Mohammed 2020-07-13

    FR Passed, Waiting on Jenkins build.
  3. Christopher Williams 2020-07-14

    merged to master for 9.1.0 target
  4. Samir Mohammed 2020-08-11

    *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

JSON Source