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

Android: Auto correct set to false on TextField with KEYBOARD_DECIMAL_PAD doesn't allow decimal point

    Details

    • Story Points:
      3
    • Sprint:
      2015 Sprint 17 SDK

      Description

      Problem

      When the keyboardType propery of a TextField is set to Ti.UI.KEYBOARD_DECIMAL_PAD and autocorrect is set to false, the decimal point is not allowed to be entered into the textfield. This leaves no way to enter dollar amounts without using the default keyboard, which allows any character, and is therefore not appropriate.

      Expected Behavior

      autocorrect should not be interfering with numbers in the text field.

      Actual Behavior

      When auto correct is set to false The "numbers and punctuation" keyboard appears, but clicking on the decimal point has no effect.

      Testcase

      app.js

      var win = Ti.UI.createWindow({
      	backgroundColor : 'white'
      });
       
      var textField = Ti.UI.createTextField({
      	borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
      	color : '#336699',
      	keyboardType : Ti.UI.KEYBOARD_DECIMAL_PAD,
      	returnKeyType : Ti.UI.RETURNKEY_DEFAULT,
      	autocorrect : false,
      	textAlign : 'right',
      	width : '50%'
      });
       
      win.add(textField);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              sunila Sunila
              Reporter:
              bitshftr Shawn Lipscomb
              Reviewer:
              Ashraf Abu (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15293
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration