{ "id": "174327", "key": "TIMOB-27512", "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": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-06T21:18:35.000+0000", "created": "2019-10-30T12:38:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "engSchedule", "escalation", "keyboard", "regression" ], "versions": [ { "id": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-11-06T21:18:35.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": "*Issue:*\r\nSoft Keyboard is not hiding using this method \"Ti.UI.Android.hideSoftKeyboard()\" on android version 8, 9 and 10. It works as expected with Ti SDK 8.2.0.GA but does not work with TI SDK 8.2.1.GA\r\n\r\nPlease see the attached gif image. Same code using 8.2.1.GA left side, using 8.2.0.GA right side.\r\n\r\n*Steps to Reproduce:*\r\n1. Run the following sample code on an android device or emulator.\r\n2. Click on the textField for appearing keyboard.\r\n3. Then click on the button for hiding it.\r\n\r\n{code:java}\r\n\tvar win = Ti.UI.createWindow({\r\n\t\tbackgroundColor : 'white',\r\n\t\tlayout : \"vertical\"\r\n\t});\r\n\r\n\tvar textField = Ti.UI.createTextField({\r\n\t\tbackgroundColor : '#fafafa',\r\n\t\tcolor : 'green',\r\n\t\twidth : 250,\r\n\t\ttop : 30,\r\n\t\theight : 40\r\n\t});\r\n\r\n\t// Create a Button.\r\n\tvar test = Ti.UI.createButton({\r\n\t\ttitle : 'test',\r\n\t\theight : 50,\r\n\t\twidth : 100,\r\n\t\ttop : 30,\r\n\r\n\t});\r\n\r\n\t// Listen for click events.\r\n\ttest.addEventListener('click', function() {\r\n\t\tTi.UI.Android.hideSoftKeyboard();\r\n\t});\r\n\r\n\twin.add(textField);\r\n\twin.add(test);\r\n\twin.open();\r\n{code}\r\n\r\n*Expected Result:*\r\nIt should hide the keyboard after clicking.\r\n\r\n*Work-Around:*\r\nUse the {{TextField}} object's {{blur()}} method instead. This still hides the keyboard in 8.2.1. However, it will also remove the focus from the {{TextField}} which might not be what you want.\r\n", "attachment": [ { "id": "67099", "filename": "hide.gif", "author": { "name": "rislam", "key": "rislam", "displayName": "Riduanul Islam", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-30T12:23:59.000+0000", "size": 316753, "mimeType": "image/gif" } ], "flagged": false, "summary": "Android: hideSoftKeyboard() not working as of 8.2.1", "creator": { "name": "rislam", "key": "rislam", "displayName": "Riduanul Islam", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rislam", "key": "rislam", "displayName": "Riduanul Islam", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.14.6\r\nNode.js\r\n Node.js Version = 10.16.3\r\n npm Version = 6.9.0\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\nTitanium SDK\r\n SDK Version = 8.2.1.GA\r\n Target Platform = android", "comment": { "comments": [ { "id": "452387", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've confirmed that this regression was introduced as of Titanium 8.2.1.\r\n\r\nThe {{hideSoftKeyboard()}} is removing the focus from the {{TextField}}, but keeps the virtual keyboard. It's doing the opposite of what it should be doing. It should be keeping the focus and dismissing the virtual keyboard instead.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-30T18:32:45.000+0000", "updated": "2019-10-30T18:32:45.000+0000" }, { "id": "452408", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/11309", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-31T20:58:45.000+0000", "updated": "2019-10-31T20:58:45.000+0000" }, { "id": "452501", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-11-06T18:34:29.000+0000", "updated": "2019-11-06T18:34:29.000+0000" }, { "id": "452508", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 8.3.0.v20191106103841.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-06T21:18:27.000+0000", "updated": "2019-11-06T21:18:27.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }