{ "id": "79565", "key": "AC-3158", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-10-20T09:12:24.000+0000", "created": "2011-08-24T01:42:36.000+0000", "labels": [ "defect,", "ios,", "keyboardtoolbar", "textfield," ], "versions": [], "issuelinks": [], "assignee": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:48:13.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Related to Q&A questions:\r\nhttp://developer.appcelerator.com/question/50211/keyboardtoolbar---textfield-focus\r\nhttp://developer.appcelerator.com/question/107891/textfield-focus-on-toolbar\r\n\r\nchecked with 1.8.0 (as of master:f7c0117f8ec88704e1cc51fb82ff55cdf0c327f6)\r\n\r\nA textfield in a keyboard toolbar, like the one in the textfield_toolbar.js example in kitchensink, will never receive focus()/blur() messages. The issue seems related to somewhat too much strict checks in TiUITextWidgetProxy.m. In particular, a check is performed on [self viewAttached], which resolves to (view != nil && windowOpened). However, in my understanding, the keyboard toolbar lives in a separately managed window with the keyboard view, so there's no mean to notify the subview proxies when that window gets opened or closed.\r\n\r\nIn a project I'm following, I've been able to overcome the problem by relaxing those checks (simply not checking for windowOpened), however this doesn't looks to me as a \"general solution\", as I'm not sure which side effects it might have.\r\n\r\nI attach a test case.\r\nexpected: clicking on the textfield on top of the window should fire the keyboard w/ a toolbar containing another textfield, and focus should be passed to the textfield in the toolbar\r\nCurrent: the keyboard w/ toolbar gets fired but the focus remains on the main textfield.\r\n", "attachment": [ { "id": "22645", "filename": "app.js", "author": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-08-24T01:42:36.000+0000", "size": 788, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Textfield in keyboard toolbar doesn't react to focus() and blur() messages", "creator": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "environment": "OSX, Titanium Studio, iOS/iPhone", "comment": { "comments": [ { "id": "169818", "author": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Olivier,\r\n\r\nThe information contained in your ticket is adequate, however if I could just ask you to please update the format, that would be great.\r\n\r\nFor small code samples we rather the code be in the description using the {code} tags rather then an attachment.\r\nAlso if you could update the environment with the TiSDK and iOS SDK you used.\r\n\r\nOnce this is done I can accept this ticket.\r\n\r\nFor a full outline of all required information, please see our JIRA checklist here - http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist\r\n\r\nBest regards,\r\nMatt", "updateAuthor": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T09:12:04.000+0000", "updated": "2011-10-20T09:12:04.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }