{ "id": "132201", "key": "TIMOB-17203", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20949", "name": "Release 9.0.1", "archived": false, "released": true, "releaseDate": "2020-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-04-09T18:53:24.000+0000", "created": "2014-06-24T21:10:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "58392", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175059", "key": "TIMOB-27921", "fields": { "summary": "Ti.UI.TextField Test Suite: Titanium.UI.TextField Acceptance TIMOB-17203", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } }, { "id": "57930", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174332", "key": "TIMOB-27616", "fields": { "summary": "Android: TextField with decimal keyboard type does not allow comma for decimal separator", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2020-06-02T13:54:46.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" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "KeyboardTypes KEYBOARD_NUMBER_PAD and KEYBOARD_DECIMAL_PAD do not act the same on iOS and Android.\r\n\r\nh5. Steps to repro:\r\n0. Create a basic app with a window and add a textField to it (text field code is available below).\r\n1. Create a textField with a keyboardType of Ti.UI.KEYBOARD_NUMBER_PAD\r\n2. Run the app on iOS and Android\r\n3. Notice that on iOS there are numbers but no decimal point\r\n4. Notice on Android there are numbers and a decimal point, and you can type as many decimal points as you like.\r\n5. Create a textField with a keyboardType of Ti.UI.KEYBOARD_DECIMAL_PAD\r\n6. Run the app on iOS and Android\r\n7. Notice that on iOS there are numbers and a decimal point, and you can type as many decimal points as you like.\r\n8. Notice on Android there are numbers and a decimal point, but you can only type one decimal point.\r\n\r\nIn our documentation is says: \"Use a keyboard with decimal numbers only\". \r\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI-property-KEYBOARD_DECIMAL_PAD\r\nSo this seems like it would be correct behavior of Android, but it is not consistent across both platforms.\r\n\r\n\r\nh5. Workaround\r\nSet different keyboardtypes for iOS and Android\r\n{code}\r\nvar ipAddress = Ti.UI.createTextField({\r\n hintText: 'IP Address',\r\n top: 10,\r\n height: 40,\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n autocapitalization: Ti.UI.TEXT_AUTOCAPITALIZATION_NONE,\r\n keyboardType: (Ti.Platform.name === 'android') ? Ti.UI.KEYBOARD_NUMBER_PAD : Ti.UI.KEYBOARD_DECIMAL_PAD\r\n });\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "TextField keyboardType: parity issues between iOS and Android", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.3.0.v20140623161712\r\niOS Sim 7.1\r\nMotorola Razr HD Android v4.1.1", "comment": { "comments": [ { "id": "320563", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4\r\niOS simulator : iPhone Retina (3.5-inch), iOS 7.0.3", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-27T13:19:58.000+0000", "updated": "2014-08-27T13:19:58.000+0000" }, { "id": "320780", "author": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "Just found this bug in my app... This should be an easy fix?... Why is it not scheduled to be fixed yet?... \r\nThis breaks all my applications... ", "updateAuthor": { "name": "thomas.neerup@eg.dk", "key": "thomas.neerup@eg.dk", "displayName": "Thomas Neerup", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2014-08-28T12:57:27.000+0000", "updated": "2014-08-28T12:57:27.000+0000" }, { "id": "325594", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Titanium SDK version 3.4.0 master, 3.3.0.GA\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\niOS SDK: 7.1 \r\niOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-25T05:55:30.000+0000", "updated": "2014-09-25T05:55:30.000+0000" }, { "id": "368888", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Changing to {{Improvement}} since it is no bug and everything still works. Will but this ticket on hold until someone provides a comprehensible reason why we should swap this against the naming of Apple.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-03T22:29:42.000+0000", "updated": "2015-11-03T22:29:42.000+0000" }, { "id": "450397", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/11134", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2019-08-12T15:37:35.000+0000", "updated": "2019-08-12T15:37:35.000+0000" }, { "id": "454860", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed on master branch.\r\nMerged master branch PR.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-25T21:11:26.000+0000", "updated": "2020-03-25T21:11:26.000+0000" }, { "id": "454861", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Need to cherry-pick the changes to 9_0_X branch", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-25T21:12:05.000+0000", "updated": "2020-03-25T21:12:05.000+0000" }, { "id": "455050", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "cherry-picked merged commit d72b0044a6aee71753181884ec27e4132caeb9db over to 9_0_X branch", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-04-09T13:59:38.000+0000", "updated": "2020-04-09T13:59:38.000+0000" }, { "id": "455064", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.15.4\r\nSDK: 9.0.1.v20200409100807, 9.1.0.v20200409073825\r\nAppc CLI: 8.0.0\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202003132109\r\nDevice: Nexus4(v5.1.1) device, Pixel3(v10.0) emulator, ", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-09T18:53:24.000+0000", "updated": "2020-04-09T18:53:24.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }