{ "id": "105929", "key": "TIMOB-12246", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15272", "description": "2013 Sprint 04 API", "name": "2013 Sprint 04 API", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "14814", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-25T02:53:32.000+0000", "created": "2012-12-04T16:29:42.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "decimal", "defect", "exalture", "keyboard", "parity", "qe-3.2.3", "qe-testadded", "textfield", "titanbeta" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2015-09-03T18:33:22.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2.Problem\r\nWhen 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.\r\n\r\nh2.Expected Behavior\r\nautocorrect should not be interfering with numbers in the text field.\r\n\r\nh2.Actual Behavior\r\nWhen auto correct is set to false The \"numbers and punctuation\" keyboard appears, but clicking on the decimal point has no effect.\r\n\r\nh2.Testcase\r\n{panel:title=app.js}\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar textField = Ti.UI.createTextField({\r\n\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n\tcolor : '#336699',\r\n\tkeyboardType : Ti.UI.KEYBOARD_DECIMAL_PAD,\r\n\treturnKeyType : Ti.UI.RETURNKEY_DEFAULT,\r\n\tautocorrect : false,\r\n\ttextAlign : 'right',\r\n\twidth : '50%'\r\n});\r\n\r\nwin.add(textField);\r\nwin.open();\r\n{code}\r\n{panel}", "attachment": [], "flagged": false, "summary": "Android: Auto correct set to false on TextField with KEYBOARD_DECIMAL_PAD doesn't allow decimal point", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "-Android 2.2 emulator\r\n-Titanium Mobile SDK 2.1.4.GA\r\n-Titanium Studio 2.1.2.201208301612", "closedSprints": [ { "id": 464, "state": "closed", "name": "2015 Sprint 17 SDK", "startDate": "2015-08-15T00:30:59.243Z", "endDate": "2015-08-29T00:30:00.000Z", "completeDate": "2015-08-31T08:10:47.969Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "239348", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3885", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-22T01:05:31.000+0000", "updated": "2013-02-22T01:05:31.000+0000" }, { "id": "241082", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nTitanium Studio, build: 3.0.2.201302191606\r\nTitanium SDK, build: 3.1.0.v20130306145654 \r\nDevice:\r\nNexus4 Android version 4.2\r\nEmulator Google APIs(Android 2.2)\r\n\r\nDecimal point can be set.\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-07T00:51:37.000+0000", "updated": "2013-03-07T00:53:05.000+0000" }, { "id": "300077", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopened. Cannot add a decimal point. \n\nAppcelerator Studio, build: 3.2.3.201404031900\nTitanium SDK, build: 3.2.3.v20140403105720\nNode.JS Version: v0.10.13\nNPM Version: 1.3.2\n├── acs@1.0.14\n├── alloy@1.3.1\n├── node-appc@0.2.0\n├── npm@1.3.2\n├── titanium@3.2.3-alpha2\n└── titanium-code-processor@1.1.1-alpha\nDevices:\nGalaxyS4 Android version 4.2.2\nGalaxy Note 2 Android version 4.1.2", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-07T18:35:21.000+0000", "updated": "2014-04-07T18:35:21.000+0000" }, { "id": "339486", "author": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "body": "I'm confirming this is still an issue, tested on Galaxy SIII (4.4.2) with Ti SDK 3.4.1. I'm not sure it's related to autocorrect = false, I'm not setting autocorrect at all.", "updateAuthor": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-16T20:33:40.000+0000", "updated": "2015-01-16T20:33:40.000+0000" }, { "id": "360346", "author": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "body": "This is still an issue. Tested on Galaxy S3 (4.3) with Ti SDK 4.1.0. Autocorrect has no affect on decimal point.", "updateAuthor": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "created": "2015-08-19T13:09:36.000+0000", "updated": "2015-08-19T13:09:36.000+0000" }, { "id": "360360", "author": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "body": "Turns out autocorrect was the issue. [PR|https://github.com/appcelerator/titanium_mobile/pull/7048] created.", "updateAuthor": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "created": "2015-08-19T16:23:27.000+0000", "updated": "2015-08-19T16:23:27.000+0000" }, { "id": "361015", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Test case: \r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n \r\nvar textField = Ti.UI.createTextField({\r\n\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n\tcolor : '#336699',\r\n\tkeyboardType : Ti.UI.KEYBOARD_DECIMAL_PAD,\r\n\treturnKeyType : Ti.UI.RETURNKEY_DEFAULT,\r\n\tautocorrect : true,\r\n\ttextAlign : 'right',\r\n\twidth : '50%'\r\n});\r\n \r\nwin.add(textField);\r\nwin.open(); \r\n{code}\r\n\r\nCurrently seeing in 4.X, when autocorrect is set to true, decimal point is disabled. The PR by [~CollinPrice] solves this. Will be putting his PR into 5.0.0 release.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-08-25T02:34:52.000+0000", "updated": "2015-08-25T02:34:52.000+0000" }, { "id": "361018", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "New PR: https://github.com/appcelerator/titanium_mobile/pull/7065\r\n\r\nPR Merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-08-25T02:53:25.000+0000", "updated": "2015-08-25T02:53:25.000+0000" }, { "id": "362190", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified that if you have autocorrect set to true or false, then you can still use the decimal point with KEYBOARD_DECIMAL_PAD.\r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 5.0.0.201508271032\r\nAppc CLI NPM: 4.2.0-1\r\nAppc CLI Core: 5.0.0-33\r\nArrow: 1.2.52\r\nSDK: 5.0.0.v20150902095518\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.5)\r\nDevices: Samsung Galaxy S5 (4.4.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-03T18:32:03.000+0000", "updated": "2015-09-03T18:33:11.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }