{ "id": "76401", "key": "TIMOB-4755", "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": "12093", "description": "", "name": "Sprint 2012-01", "archived": true, "released": true, "releaseDate": "2012-01-15" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-01T11:37:33.000+0000", "created": "2011-06-15T02:31:13.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "keyboard", "module_textfield", "parity", "qe-testadded", "scrollViews" ], "versions": [], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-03T22:27:52.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": "When textfield in windows gain focus, the keyboard used to hide them. So i create a big scrollView and put everything inside. It worked perfectly: i was able to see what i wrote. However now, the keyboard launch itself with the windows, so i have to press back button to hide him.\r\n\r\nI tried myTextField.blur() but keyboard still happen.\r\n\r\nOnly way to prevent this is to add focusable: false to my textField, but then i can not acces to the keyboard (even by adding an event to set focusable: true).\r\n\r\nHere is my code:\r\n\r\nTo launch the windows in app.js:\r\n\r\n{code} \r\nvar win = Titanium.UI.createWindow({\r\n\tbackgroundColor: '#D1D1D1',\r\n\turl: '/authentification.js',\r\n\tnavBarHidden: true,\r\n\tfullscreen: false\r\n});\r\nwin.open();\r\n{code} \r\n\r\nand authentification.js:\r\n\r\n{code} \r\n\r\nvar win = Titanium.UI.currentWindow;\r\n\r\nvar deviceWidth = Titanium.Platform.displayCaps.platformWidth;\r\nvar deviceHeight = Titanium.Platform.displayCaps.platformHeight;\r\n\r\nvar MainScrollView = Titanium.UI.createScrollView({\r\n contentWidth:deviceWidth,\r\n contentHeight:deviceHeight*79/100,\r\n top:deviceHeight*11/100,\r\n\tleft:0\r\n});\r\n\r\nvar view = Titanium.UI.createView({\r\n top: deviceHeight * 39 / 100,\r\n\tleft: deviceWidth * 4/100,\r\n\twidth: deviceWidth * 92/100,\r\n\theight: deviceHeight * 25 / 100,\r\n\tborderRadius: 5,\r\n\tborderWidth: 2,\r\n\tborderColor: '#9B9B9B',\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\n\r\nvar txtFieldPasswd = Titanium.UI.createTextField({\r\n\tpasswordMask:true,\r\n\tleft: deviceWidth*5/100,\r\n\twidth: deviceWidth*82/100,\r\n\ttop: deviceHeight*10/100,\t\t\r\n\theight: deviceHeight* 8/100,\r\n\tsoftKeyboardOnFocus:1 \r\n});\r\nview.add(txtFieldPasswd);\r\n\r\nMainScrollView.add(view);\r\nwin.add(MainScrollView);\r\n{code} \r\n", "attachment": [], "flagged": false, "summary": "Android: textField: Property \"softKeyboardOnFocus\" does not work", "creator": { "name": "varfendell", "key": "varfendell", "displayName": "Florent", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "varfendell", "key": "varfendell", "displayName": "Florent", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested using:\r\n* Titanium SDK 1.6.2, 1.7.2 (07/12/11 19:02 9f3ea99...)\r\n* It works *correctly* on emulator with 2.2, 2.3.3 and APIs 2.3.3\r\n* does *not* work on device, Samsung Galaxy S (Android 2.2) or Nexus one (2.3.4)\r\n", "comment": { "comments": [ { "id": "158581", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "In order for us to progress this issue, would you please edit the ticket to use the wiki formatting syntax provided.\r\n Also, please check your ticket against [the Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AtheJiraTicketChecklist] to ensure you have all the points covered.\r\n\r\nMany thanks\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-05T15:28:21.000+0000", "updated": "2011-07-05T15:28:21.000+0000" }, { "id": "158749", "author": { "name": "varfendell", "key": "varfendell", "displayName": "Florent", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I update the problem to make it easier to create.\r\n\r\nI still don't know where it comes from that the kayboard pop up by itself.", "updateAuthor": { "name": "varfendell", "key": "varfendell", "displayName": "Florent", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T08:44:18.000+0000", "updated": "2011-07-06T08:44:18.000+0000" }, { "id": "159022", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Florent\r\n\r\nThank you for the changes you have made to the ticket, as now it is almost complete. Would you mind testing the code on 1.7.X as well, though, after installing it from [Continuous Builds|http://wiki.appcelerator.org/display/guides/Continuous+Builds]?\r\n\r\nAlso would you please copy and paste the Titanium SDK builds, including build date and hash, you are using? The full list of what is required for tickets is available in the [Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist], for future reference.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-08T09:41:50.000+0000", "updated": "2011-07-08T09:41:50.000+0000" }, { "id": "159349", "author": { "name": "varfendell", "key": "varfendell", "displayName": "Florent", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul,\r\n\r\nI tested the code on 1.7.X as you asked (1.7.2.v20110712190239 sha1: 2a057a04b19a9a837d2fe221a8858969dde0c347).\r\n\r\nIt works well on emulateur with APIs2.3.3 and 2.3.3 and 2.2 but on device it still doesn't work (Samsung Galaxy S Android sdk 2.2 and Nexus one with 2.3.4)\r\n\r\nHere is the content of the logfile:\r\n\r\n{code}\r\nLogfile initialized\r\n[INFO] logfile = D:\\Documents and Settings\\bGouny\\Mes documents\\Dev\\Test\\TestFlo\\build.log\r\n[DEBUG] D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\builder.py install \"TestFlo\" \"D:\\Documents and Settings\\bGouny\\Mes documents\\sdk\\android-sdk-windows\" \"D:\\Documents and Settings\\bGouny\\Mes documents\\Dev\\Test\\TestFlo\" \"flo.test.com\" \"16\"\r\n[INFO] Titanium SDK version: 1.7.2 (07/12/11 19:02 9f3ea99...)\r\n[DEBUG] Waiting for device to be ready ...\r\n[TRACE] adb devices returned 2 devices/emulators\r\n[DEBUG] Device connected... (waited 0 seconds)\r\n[DEBUG] waited 0.031000 seconds on emulator to get ready\r\n[DEBUG] flo.test.com installed? False\r\n[INFO] Copying project resources..\r\n[INFO] Tiapp.xml unchanged, skipping class generation\r\n[DEBUG] Processing Android resource drawables\r\n[DEBUG] creating unsigned apk: D:\\Documents and Settings\\bGouny\\Mes documents\\Dev\\Test\\TestFlo\\build\\android\\bin\\app-unsigned.apk\r\n[DEBUG] from resource zip => assets/Resources/KS_nav_ui.png\r\n[DEBUG] from resource zip => assets/Resources/KS_nav_views.png\r\n[DEBUG] from resource zip => assets/Resources/app.js\r\n[DEBUG] from resource zip => assets/Resources/appicon.png\r\n[DEBUG] from resource zip => assets/Resources/authentification.js\r\n[DEBUG] from resource zip => assets/Resources/default.png\r\n[DEBUG] from resource zip => assets/tiapp.xml\r\n[DEBUG] from resource zip => res/drawable/appicon.png\r\n[DEBUG] from resource zip => res/drawable/background.png\r\n[DEBUG] from resource zip => res/layout/titanium_tabgroup.xml\r\n[DEBUG] from resource zip => AndroidManifest.xml\r\n[DEBUG] from resource zip => resources.arsc\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\modules\\titanium-ui.jar => ti/modules/titanium/ui/widget/webview/binding.js\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\modules\\titanium-ui.jar => ti/modules/titanium/ui/widget/webview/binding.min.js\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\modules\\titanium-ui.jar => ti/modules/titanium/ui/widget/webview/json2.js\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/apache/Commons-NOTICE.txt\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/apache/HttpComponents-NOTICE.txt\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/apache/mime4j-NOTICE.txt\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/build.properties\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/background.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/btn_check_buttonless_on.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/btn_check_buttonless_on_18.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/btn_check_buttonless_on_48.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/btn_more.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/btn_more_18.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/btn_more_48.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/btn_picker_normal.9.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/btn_picker_pressed.9.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/btn_picker_selected.9.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/default_icon.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\titanium.jar => org/appcelerator/titanium/res/drawable/photoDefault.png\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\smalljs.jar => org/mozilla/javascript/resources/Messages.properties\r\n[DEBUG] from JAR D:\\Documents and Settings\\All Users\\Application Data\\Titanium\\mobilesdk\\win32\\1.7.2.v20110712190239\\android\\smalljs.jar => org/mozilla/javascript/resources/Messages_fr.properties\r\n[DEBUG] Waiting for device to be ready ...\r\n[TRACE] adb devices returned 2 devices/emulators\r\n[DEBUG] Device connected... (waited 0 seconds)\r\n[DEBUG] waited 0.047000 seconds on emulator to get ready\r\n[INFO] Installing application on emulator\r\n[INFO] Application installed. Launch from drawer on Home Screen\r\n{code}\r\n\r\nEDIT: I was wrong about the sdk version of my mobile, it's sdk 2.2 and not 2.3.2", "updateAuthor": { "name": "varfendell", "key": "varfendell", "displayName": "Florent", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-13T01:02:47.000+0000", "updated": "2011-07-13T01:09:55.000+0000" }, { "id": "175840", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When textfield in scrollView, keyboard displays automatically on device (tried 2.3.4 and 3.1). It does not happen on emulator (tried 2.2, 3.1 and 4.0).\r\nFor device 3.1, keyboard displays automatically as long as there is a textfield (no matter whether it is in a scrollview). But for device 2.3.4, keyboard does not display automatically if textfield is in a View.\r\nFor device 2.3.4 and 3.1, the property of textField \"softKeyboardOnFocus:1\" does not work.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-12T16:07:47.000+0000", "updated": "2011-12-12T16:07:47.000+0000" }, { "id": "179680", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120117144634\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.8.201201131907\r\nOS: Mac OS X Lion (10.7.1)\r\nDevice: Droid 3 (2.3.4)\r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-17T16:50:51.000+0000", "updated": "2012-01-17T16:50:51.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }