{ "id": "63741", "key": "TIMOB-3109", "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": "11359", "description": "Mobile 1.8.0 M06", "name": "Sprint 2011-27", "archived": true, "released": true, "releaseDate": "2011-07-11" } ], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2011-07-05T16:05:14.000+0000", "created": "2011-04-15T03:37:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "blur", "defect", "ios", "keyboard", "modalstyle", "reported-1.5.1", "reported-1.6.0" ], "versions": [], "issuelinks": [ { "id": "30276", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "87341", "key": "TIMOB-8611", "fields": { "summary": "iOS: TextArea.blur() does not hide keyboard on iPad in modal formsheet", "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": "30275", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "117318", "key": "TIMOB-14591", "fields": { "summary": "iOS: iPad: textArea.blur() not working within modal view when modalStyle: Ti.UI.iPhone.MODAL_PRESENTATION_FORMSHEET", "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 } } } }, { "id": "30274", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "82463", "key": "TIMOB-6060", "fields": { "summary": "iOS: Blurring Textfield in Modal Window Doesn't Dismiss Keyboard", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:16:08.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've found out that when a textField is on a modal window, with\r\na modalStyle set to the constant of\r\nTitanium.UI.iPhone.MODAL_PRESENTATION_FORMSHEET\r\nthe keyboard is not able to loose focus properly.

\r\n

What happens when blur() is called is cursor focus is lost from\r\nthe textField yet the keyboard remains on the screen and is\r\nunresponsive to touch events. I have written a small app.js so that\r\nthis bug can be reproduced.

\r\n

Running Titanium Developer v1.2.2 on OSX 10.6.6 and Titanium SDK\r\nv1.5.1 on an iPad Project (simulator and device). I'm 99.9% sure\r\nit's this line
\r\n\"modalStyle:\r\nTitanium.UI.iPhone.MODAL_PRESENTATION_FORMSHEET\" as removing\r\nit fixes the problem.

\r\n
\r\nvar window = Titanium.UI.createWindow({\r\n    backgroundColor: '#eee'\r\n});\r\n\r\nvar textField = Titanium.UI.createTextField({\r\n    height:35,\r\n    top:300,\r\n    width:350,\r\n    borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n\r\ntextField.addEventListener('return', function(e) {\r\n    textField.blur();\r\n});\r\n\r\nwindow.add(textField);\r\nwindow.open({\r\n    modal:true,\r\n    modalTransitionStyle: Titanium.UI.iPhone.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL,\r\n    modalStyle: Titanium.UI.iPhone.MODAL_PRESENTATION_FORMSHEET\r\n});\r\n
{html}", "attachment": [ { "id": "21629", "filename": "Modality.zip", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-05T16:03:04.000+0000", "size": 28791, "mimeType": "application/zip" } ], "flagged": false, "summary": "Blur & MODAL_PRESENTATION_FORMSHEET == Keyboard not hiding.", "creator": { "name": "samjordan", "key": "samjordan", "displayName": "Sam Jordan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "samjordan", "key": "samjordan", "displayName": "Sam Jordan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130095", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "{html}

I'm also seeing this on the iPad using the current 1.7.0 SDK in\ngithub with textFields on a MODAL_PRESENTATION_FORMSHEET modal\nwindow.

\n

textfield.blur() removes the caret, but the keyboard is still\nup.

{html}", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2011-04-15T03:37:14.000+0000", "updated": "2011-04-15T03:37:14.000+0000" }, { "id": "133018", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We have a Helpdesk ticket that needs this fixed as well.\n\nhttp://support.appcelerator.com/tickets/ZKE-13322-962/homepage\n\nTi SDK 1.6.2 and iOS 4.3", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-05-02T01:43:39.000+0000", "updated": "2011-05-02T01:43:39.000+0000" }, { "id": "158332", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here is another HD ticket waiting for resolution: http://support-admin.appcelerator.com/display/APP-714669", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-30T10:34:58.000+0000", "updated": "2011-06-30T10:34:58.000+0000" }, { "id": "158585", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This XCode project demonstrates how the behavior is designed by Apple even outside of Titanium.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-05T16:03:04.000+0000", "updated": "2011-07-05T16:03:04.000+0000" }, { "id": "158586", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Turns out this is by Apple's design. I was successfully able to recreate the behavior natively (Not using Titanium) and indeed the OS keeps the keyboard up when the modal is a form sheet.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-05T16:05:14.000+0000", "updated": "2011-07-05T16:05:14.000+0000" }, { "id": "262259", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6060 is a feature request to allow for the nonstandard functionality of keyboard hiding on a formsheet.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-17T23:34:35.000+0000", "updated": "2013-07-17T23:34:35.000+0000" }, { "id": "414427", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to the time that has passed since it was filed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:16:08.000+0000", "updated": "2017-03-21T21:16:08.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }