{ "id": "129805", "key": "TIMOB-16893", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-29T20:35:09.000+0000", "created": "2014-04-29T22:10:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_textfield", "qe-manualtest", "qe-testadded", "supportTeam" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-19T05:43:36.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": "h3. Issue \r\n\r\nCurrently when user enables as true the property enableReturnKey in a textField or textArea in iOS the button is disabled until the value is different from null while in the case of Android is not working even when the documentation specify that the property is enabled for Android in textfield ( http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.TextField-property-enableReturnKey ) and textarea ( http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.TextArea-property-enableReturnKey ).\r\n\r\nh3. Test Case\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar tf = Ti.UI.createTextField({ \r\nenableReturnKey:true, \r\n}); \r\n\r\ntf.addEventListener('return',function(){\r\n\talert(tf.value);\r\n});\r\n\r\nwin.add(tf);\r\nwin.open();\r\n{code}\r\n\r\nh3. Steps to repro\r\n\r\nRun the app\r\nSelect the textfield\r\nClick on the Return Key\r\n\r\nExpected Result\r\nThe Return key will be disabled preventing the action from being executed until the textfield value is different form null.\r\n\r\nActual Result\r\nThe result key is enabled from start allowing user to call the action even there no value on textfield\r\n", "attachment": [], "flagged": false, "summary": "Android: textField and textArea enableReturnKey property not working", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 3.2.2\r\nOS: Android", "closedSprints": [ { "id": 133, "state": "closed", "name": "2014 Sprint 13 SDK", "startDate": "2014-06-23T21:55:20.791Z", "endDate": "2014-07-04T00:00:00.000Z", "completeDate": "2014-07-07T17:32:18.561Z", "originBoardId": 100 }, { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 }, { "id": 121, "state": "closed", "name": "2014 Sprint 12 SDK", "startDate": "2014-06-09T21:51:17.043Z", "endDate": "2014-06-21T00:00:00.000Z", "completeDate": "2014-06-23T16:52:29.621Z", "originBoardId": 114 }, { "id": 154, "state": "closed", "name": "2014 Sprint 15 SDK", "startDate": "2014-07-21T21:56:31.515Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T21:03:51.067Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "306759", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You can't disable a key on the soft-keyboard on Android, but we shouldn't fire 'return' event when the text is empty with enableReturnKey set to true. I will fix this and update the doc accordingly", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-28T22:54:12.000+0000", "updated": "2014-05-28T22:54:12.000+0000" }, { "id": "306761", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/5741", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-28T23:07:01.000+0000", "updated": "2014-05-28T23:07:01.000+0000" }, { "id": "306762", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Testing steps: \r\n1. Run code in description\r\n2. Click on return key, check log. 'return' event should not fire.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-28T23:07:59.000+0000", "updated": "2014-05-28T23:07:59.000+0000" }, { "id": "316196", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-29T20:35:09.000+0000", "updated": "2014-07-29T20:35:09.000+0000" }, { "id": "319042", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment - \r\nAppcelerator Studio - 3.3.0.201407111535\r\nSDK - 3.4.0.v20140815142514\r\nACS - 1.0.16\r\nAlloy - 1.4.1\r\nNPM - 1.3.2\r\nTitanium - 3.3.0\r\nCode-processor - 1.1.1\r\nXcode - 6Beta5\r\nOS - Mavericks(v10.9.4)\r\nDevices - Nexus 7(v4.4), Nexus 5(v4.4.4), iPhone5(v7.1.2)\r\n\r\nResult - Now its working fine for Android. 'return' event does not show in log for Android. On iOS, return key is disabled", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-18T09:14:25.000+0000", "updated": "2014-08-18T09:14:25.000+0000" }, { "id": "319227", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested using below environment - \r\nEnvironment - \r\nAppc Studio - 3.4.0.201408180158 \r\nSDK - 3.4.0.v20140815142514 \r\nacs - 1.0.16 \r\nalloy - 1.5.0-dev \r\nnpm - 1.3.2 \r\ntitanium - 3.4.0-dev \r\ntitanium-code-processor - 1.1.1 \r\nOS - mavericks (v10.9.4) \r\nXcode - 6Beta5\r\nDevice - iPhone5 (v7.1.2), Nexus5(v4.4.4)\r\n\r\nResult - Its working fine for Android. 'return' event does not show in log for Android. On iOS, return key is disabled. Hence closing this issue.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-19T05:42:11.000+0000", "updated": "2014-08-19T05:42:11.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }