{ "id": "84266", "key": "TIMOB-6873", "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": "12095", "description": "", "name": "Sprint 2012-03", "archived": true, "released": true, "releaseDate": "2012-02-12" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:29:04.000+0000", "created": "2011-12-27T08:27:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_textfield", "parity", "qe-testadded" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "14456", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "77601", "key": "TIMOB-4630", "fields": { "summary": "Android: UI.TextField - click event not fired first time", "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": "Trivial", "id": "5" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "16307", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "88966", "key": "TIMOB-8332", "fields": { "summary": "Android: tableView textField focus is lost while typing", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15146", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "86342", "key": "TIMOB-7618", "fields": { "summary": "Android: Text field loses focus when changing orientation", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T05:32:37.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\nFocus and Blur Events are getting triggered slightly different as they are on iPhone Platform.\r\n\r\nThey are getting triggered for each and every digit/character entered by the user even if he/she is entering the data in the same Text Field.\r\n\r\nh6.Tested on\r\niOS Simulator / iPhone 3Gs iOS 5\r\nAndroid HVGA Emulator / LG Ally v2.2.1\r\n\r\nh6.Expected behavior\r\nWhile entering to a Text Field Focus got fired once\r\nWhile selecting another TextField, Blur - Focus got fired (in that order, once).\r\n\r\nh6.Unexpected behavior\r\nWhile entering to a Text Field Focus got fired twice, and every time a digit is entered\r\nWhile selecting another TextField, Blur - Focus got fired TWICE, and every time digits are entered.\r\n\r\nh6.Steps to reproduce\r\n1) Select a TextField\r\n2) Select any other TextFields in order to trigger Blur and Focus events respectively\r\n3) Notice the difference between each platform\r\n\r\nh6.Repro sequence\r\nThis sample uses an \"alert box\" to reproduce the issue. \r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tsoftInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : '',\r\n\twindowSoftInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : ''\r\n});\r\n\r\nvar tf1 = null;\r\n\r\nfunction addRow() {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight : 80,\r\n\t\t//touchEnabled:false\r\n\t});\r\n\t\r\n\ttf1 = Titanium.UI.createTextField({\r\n\t\tcolor : '#336699',\r\n\t\twidth : 250,\r\n\t\theight : 80,\r\n\t\tfocusable : true,\r\n\t\treturnKeyType : Titanium.UI.RETURNKEY_DONE,\r\n\t\t//autocapitalization : Titanium.UI.TEXT_AUTOCAPITALIZATION_WORDS,\r\n\t\tautocorrect : false,\r\n\t\tsuppressReturn : true,\r\n\r\n\t});\r\n\t\r\n\ttf1.addEventListener('focus', function() {\r\n\t\tTi.API.info('Focus fired');\r\n\t\talert('Focus fired');\r\n\t});\r\n\r\n\ttf1.addEventListener('blur', function() {\r\n\t\tTi.API.info('blur fired');\r\n\t\talert('Blur fired');\r\n\t});\r\n\t\r\n\trow.add(tf1);\r\n\t//row.selectionStyle = Ti.UI.iPhone.TableViewCellSelectionStyle.NONE;\r\n\t//row.className = 'control';\r\n\treturn row;\r\n}\r\n\r\n// create table view data object\r\nvar data = [];\r\n\r\nfor(var x = 0; x < 10; x++) {\r\n\tdata[x] = addRow();\r\n}\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\tdata : data,\r\n\t//style : Titanium.UI.iPhone.TableViewStyle.GROUPED\r\n});\r\n\r\nwin.add(tableView);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh6.Customer's remarks\r\n{noformat}\r\nFor every character hit on keypad the 'focus' and 'blur' are firing. Anyways you can fire an event or something like that to that that these events are firing for each key hit on keypad. In our app I was firing an event to update another view on the same window and was not showing any alert but its behaving the same way.\r\n{noformat}", "attachment": [], "flagged": false, "summary": "Android: Inconsistent Focus and Blur events with Textfield in TableViewRow", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": " Product: Mobile\r\n Titanium SDK: Mobile 1.7.5, 1.8.0.1, 1.9.0\r\n Platform OS: Android\r\n Platform OS Version: 2.2, 2.3.3", "comment": { "comments": [ { "id": "181949", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "This issue latest notification was not sent due to JIRA mail setting. Fixed now. Please check the issue for latests changes.", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2012-02-06T06:36:08.000+0000", "updated": "2012-02-06T06:36:08.000+0000" }, { "id": "182939", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with SDK 1.9.0.v20120212011634 Droid 3 (2.3.4) and Nexus S (2.2.2) as well as emulator with both Rhino and V8 runtimes.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-13T12:10:57.000+0000", "updated": "2012-02-13T12:10:57.000+0000" }, { "id": "278592", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4863\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T05:32:37.000+0000", "updated": "2013-11-07T05:32:37.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }