{ "id": "155137", "key": "TIMOB-20465", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-06T07:25:54.000+0000", "created": "2016-02-25T18:31:48.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "feedback", "qe-5.4.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-10T17:57:17.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Would be great to have the keypressed event (only available now for Android, Windows) for IOS accessible in order to get the e.keyCode pressed on the hardware keyboard. or just being able to get the keyCode from the source onChange would suffice.\n", "attachment": [], "flagged": false, "summary": "iOS: Support \"keypressed\" event", "creator": { "name": "eric.harms@gmail.com", "key": "eric.harms@gmail.com", "displayName": "eric harms", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "eric.harms@gmail.com", "key": "eric.harms@gmail.com", "displayName": "eric harms", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 614, "state": "closed", "name": "2016 Sprint 07 SDK", "startDate": "2016-03-26T00:38:56.432Z", "endDate": "2016-04-09T00:38:00.000Z", "completeDate": "2016-04-11T04:41:08.231Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "377916", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Thanks for your request. Usually the feature request takes time to implement. The request needs to be approved by the selection commeette. Also, There is currently lot in out pipeline. We will let you know if and when we will be able to implement the feature. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-25T19:14:30.000+0000", "updated": "2016-02-25T19:14:30.000+0000" }, { "id": "381245", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello we've added a keyboardPress event which will get triggered every time a button is pressed (if listening for it) , the event will return the specific key pressed. \r\nPR:https://github.com/appcelerator/titanium_mobile/pull/7915\r\nDemo Code : \r\n{code:javascript}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar search = Ti.UI.createSearchBar({\r\n hintText: \"Table Search\",\r\n top:0\r\n});\r\n\r\n\r\nsearch.addEventListener(\"keypressed\",function(e){\r\n\tTi.API.info(e);\r\n});\r\n\r\nvar textArea = Ti.UI.createTextArea({\r\n textAlign: 'left',\r\n value: 'I am a textArea',\r\n top: 60,\r\n width: 300, \r\n height : 70\r\n});\r\n \r\ntextArea.addEventListener(\"keypressed\",function(e){\r\n\tTi.API.info(e);\r\n});\r\n\r\nvar textField = Ti.UI.createTextField({\r\n textAlign: 'left',\r\n value: 'I am a textField',\r\n top: 140,\r\n width: 300, \r\n height : 70\r\n});\r\n \r\ntextField.addEventListener(\"keypressed\",function(e){\r\n\tTi.API.info(e);\r\n});\r\n\r\nwin.add(search);\r\nwin.add(textArea);\r\nwin.add(textField);\r\nwin.open();\r\n{code}\r\nPR pending : https://github.com/appcelerator/titanium_mobile/pull/7903", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-31T22:49:31.000+0000", "updated": "2016-04-05T17:35:32.000+0000" }, { "id": "388073", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, Keypressed events are not supported on iOS. \r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device & iPhone 6 Plus (8.3) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160608165242\r\nAppc Studio: 4.6.0.201605201934\r\nAppc NPM: 4.2.7-2\r\nApp CLI: 5.4.0-15\r\nXcode 7.3\r\nNode v4.2.6\r\n*Closing ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-10T17:56:52.000+0000", "updated": "2016-06-10T17:56:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }