{ "id": "62097", "key": "TIMOB-1465", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-06-25T13:43:36.000+0000", "created": "2011-04-15T02:53:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "blur", "focus", "ios", "iphone", "keyboard" ], "versions": [], "issuelinks": [ { "id": "18031", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "61260", "key": "TIMOB-628", "fields": { "summary": "Text fields don't auto blur when the return key is hit (within a scroll view)", "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 } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:29:30.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": "{html}

I have a text field and some code to focus the next text field\non the screen when the return key is tapped:

\n
\nvar txt = Titanium.UI.createTextField({\n  height: 35,\n  width: 200,\n  right: 10,\n  borderStyle = Titanium.UI.INPUT_BORDERSTYLE_LINE,\n  autocorrect = false\n});\ntxt.addEventListener('return', function()\n{\n  nextTextField.focus();\n});\n
\n

The problem is that about 60-90% of the time, the keyboard\nbounces down and up just a little bit before the next field is\nfocused. I don't want this to happen; the keyboard should not move\nwhile the next text field is receiving focus because it's very\ndistracting to the user.

{html}", "attachment": [], "flagged": false, "summary": "Keyboard bounces up and down when focusing next text field", "creator": { "name": "carmenwick", "key": "carmenwick", "displayName": "Carmen Wick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "carmenwick", "key": "carmenwick", "displayName": "Carmen Wick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125771", "author": { "name": "cliftonlabrum", "key": "cliftonlabrum", "displayName": "Clifton Labrum", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm having this same issue on my iPhone 4 device (but not in the\nsimulator).

\n

Assigning to Mr. Haynie.

{html}", "updateAuthor": { "name": "cliftonlabrum", "key": "cliftonlabrum", "displayName": "Clifton Labrum", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:36.000+0000", "updated": "2011-04-15T02:53:36.000+0000" }, { "id": "125772", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I have tested android for this issue and, as of the latest build\n1.4.x, android is not affected.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:36.000+0000", "updated": "2011-04-15T02:53:36.000+0000" }, { "id": "125773", "author": { "name": "carmenwick", "key": "carmenwick", "displayName": "Carmen Wick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Adding suppressReturn=false to the textfield seems to fix the\nproblem. No idea why this works.

\n

I would think that suppressReturn=false would mean \"No, do NOT\nsuppress the default handling of the Return key, which would be to\nunfocus the text field\" and suppressReturn=true would mean, \"Yes,\nplease DO suppress the default handling of the Return key. Do\nnothing when return is pressed, instead relying on the application\nto provide an event handler via the 'return' event on the\ntextfield.\"

{html}", "updateAuthor": { "name": "carmenwick", "key": "carmenwick", "displayName": "Carmen Wick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:53:37.000+0000", "updated": "2011-04-15T02:53:37.000+0000" }, { "id": "200081", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed as part of TIMOB-628 fixes. See docs for behavior of suppressReturn", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-25T12:02:10.000+0000", "updated": "2012-06-25T12:02:10.000+0000" }, { "id": "410585", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:29:30.000+0000", "updated": "2017-03-09T21:29:30.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }