Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27870

Android: KEYBOARD_TYPE_NUMBERS_PUNCTUATION should allow all chars except emoji like iOS

    Details

    • Story Points:
      7
    • Sprint:
      2020 Sprint 9, 2020 Sprint 10, 2020 Sprint 11, 2020 Sprint 12, 2020 Sprint 13

      Description

      Summary:
      On iOS, KEYBOARD_TYPE_NUMBERS_PUNCTUATION allows all characters to be entered such as letters (all languages), numbers, and symbols... but not emoji. The only difference between this keyboard type and KEYBOARD_TYPE_ASCII is that iOS shows the "Numbers and Punctuations" keyboard layout by default when shown, but still allows the end-user to switch keyboards if they wish.

      On Android, this keyboard type won't let the end-user enter any letters/symbols from any language. It will automatically filter them out when the end-user attempts to enter them. This keyboard type should be changed to match iOS' behavior.

      Test Code:

      var window = Ti.UI.createWindow();
      window.add(Ti.UI.createTextField({
      	keyboardType: Ti.UI.KEYBOARD_TYPE_NUMBERS_PUNCTUATION,
      	width: "90%",
      }));
      window.open();
      

      Note 1:
      The iOS UIKeyboardTypeNumbersAndPunctuation and UIKeyboardTypeASCIICapable types are commonly used to display keyboards without emoji. This is the most important detail we need to replicate on Android.

      Note 2:
      Android does not have an API which lets us display the numbers side of the keyboard by default when using a normal text keyboard. So, this is something we can't replicate from iOS.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
              Tester:
              Samir Mohammed
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration