{ "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.

\n

One of those use cases is a PIN entry screen where the only\npossible options are entering and submitting the PIN.

\n

Add View.softKeyboardOnFocus that accepts the\nfollowing 3 states.

\n

Ti.UI.Android.SOFT_KEYBOARD_DEFAULT_ON_FOCUS -\nDefault, use Android Conventions

\n

Ti.UI.Android.SOFT_KEYBOARD_HIDE_ON_FOCUS - Request\nhiding the keyboard. Useful on Button after leaving the input\narea.

\n

Ti.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS - Request\nshowing the keyboard. Useful when entering an input area.

\n

This feature needs to be tested on 1.6 and 2.X platforms.

{html}", "attachment": [], "flagged": false, "summary": "Android: Allow Soft Keyboard States On Focus", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126092", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(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...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:29.000+0000", "updated": "2011-04-15T02:56:29.000+0000" }, { "id": "126093", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed, needs testcase (or rather Don provided one, I need to\nadd it to KS)

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:29.000+0000", "updated": "2011-04-15T02:56:29.000+0000" }, { "id": "126094", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

reopened to test on 1.6 (2.2 checked)

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:29.000+0000", "updated": "2011-04-15T02:56:29.000+0000" }, { "id": "126095", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed on a g1 running 1.6, the nexus one running 2.2

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:30.000+0000", "updated": "2011-04-15T02:56:30.000+0000" }, { "id": "126096", "author": { "name": "johnveldboom", "key": "johnveldboom", "displayName": "John Veldboom", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Also confirmed on Droid 2.2 stock.

\n

And just to clarify, it needs to be added to the TextField or\nTextArea itself.

\n
\nvar searchField = Ti.UI.createTextField({\n   softKeyboardOnFocus: Ti.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS\n});\n
{html}", "updateAuthor": { "name": "johnveldboom", "key": "johnveldboom", "displayName": "John Veldboom", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:30.000+0000", "updated": "2011-04-15T02:56:30.000+0000" }, { "id": "126097", "author": { "name": "johnveldboom", "key": "johnveldboom", "displayName": "John Veldboom", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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!

{html}", "updateAuthor": { "name": "johnveldboom", "key": "johnveldboom", "displayName": "John Veldboom", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:30.000+0000", "updated": "2011-04-15T02:56:30.000+0000" }, { "id": "126098", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(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...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:31.000+0000", "updated": "2011-04-15T02:56:31.000+0000" }, { "id": "126099", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed android 1.6 sim vi KS.

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:31.000+0000", "updated": "2011-04-15T02:56:31.000+0000" }, { "id": "126100", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed android 2.1 sim using KS

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:56:31.000+0000", "updated": "2011-04-15T02:56:31.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }