{ "id": "62208", "key": "TIMOB-1576", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11226", "name": "Release 1.5.0 M01", "archived": true, "released": true, "releaseDate": "2010-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:33.000+0000", "created": "2011-04-15T02:56:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "feature" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:33.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": "{html}
For some limited use cases, it is desirable to break away from\nthe standard Android UI convention of only showing the keyboard\nwhen an edit field is touch focused or the user requests it with\nlong-press on Menu.
\nOne of those use cases is a PIN entry screen where the only\npossible options are entering and submitting the PIN.
\nAdd View.softKeyboardOnFocus
that accepts the\nfollowing 3 states.
Ti.UI.Android.SOFT_KEYBOARD_DEFAULT_ON_FOCUS
-\nDefault, use Android Conventions
Ti.UI.Android.SOFT_KEYBOARD_HIDE_ON_FOCUS
- Request\nhiding the keyboard. Useful on Button after leaving the input\narea.
Ti.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS
- Request\nshowing the keyboard. Useful when entering an input area.
This feature needs to be tested on 1.6 and 2.X platforms.
(from [b06ad77b3b072a3f3a93d2a47a9f3f43088b913f])\n[#1576 state:fixed-in-qa] Special case had to be\nmade for Droid and Donut. Intended for special use cases, not\ngeneral behavior. It's not the Android UI way. \nhttp://github.com/appcelerator/titanium_mobile/commit/b06ad77b3b072...
confirmed, needs testcase (or rather Don provided one, I need to\nadd it to KS)
reopened to test on 1.6 (2.2 checked)
confirmed on a g1 running 1.6, the nexus one running 2.2
Also confirmed on Droid 2.2 stock.
\nAnd just to clarify, it needs to be added to the TextField or\nTextArea itself.
\nvar searchField = Ti.UI.createTextField({\n softKeyboardOnFocus: Ti.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS\n});
\n
Would you mind providing an example on how to close the keyboard\nafter a button press? I've tried a couple things, but can't figure\nit out. Thanks!
(from [fce0365c805b92bcceab662dfb04289709e1fb49])\n[#1576 state:fixed-in-qa] Added example to\nKitchenSink, no code changes were made. \nhttps://github.com/appcelerator/titanium_mobile/commit/fce0365c805b...
confirmed android 1.6 sim vi KS.
confirmed android 2.1 sim using KS