Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13542] Android: single click on a textField does not open the soft keyboard

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-04-12T23:21:24.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 08 API, 2013 Sprint 08, Release 3.2.0
ComponentsAndroid
Labelsmodule_textfield, qe-testadded, regression, release-note
ReporterFederico Casali
AssigneeHieu Pham
Created2013-04-12T19:14:27.000+0000
Updated2013-09-26T07:32:34.000+0000

Description

Problem description

When clicking on a non-focused TextField, the soft keyboard is not automatically shown. Not reproducible with TiSDK 3.0.2 GA - Regression

Steps to reproduce

1. Create a new project with two text fields/ text areas (see sample code) 2. Run the project Result: first text field is focused by default 3. Click on the second field Result: second field get focused, but the soft keyboard does not show 4. Click on the second field again Result: soft keyboard is now shown 5. Click on the back button and then on the first field Result: soft keyboard is hidden, then clicking on the first field only the focus and the i-beam is moved, but no soft keyboard is shown. User has to click again on the field to have the keyboard being displayed.

Sample code

var win = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'white'
});


var view = Ti.UI.createView({
	width: '80%',
	height: '80%',
	backgroundColor:'blue',
	top:0
})

var tf = Ti.UI.createTextField({
	width:200,
	top: 10,
	height:Ti.UI.SIZE,
	borderColor:'black',
	borderRadius:5,
	// backgroundColor:'white',
});

var ta = Ti.UI.createTextArea({
	width:200,
	height:Ti.UI.SIZE,
	top:100,
	// backgroundColor:'white',
	borderColor:'black',
	borderRadius:5,
});

view.add(tf);
view.add(ta);

win.add(view);

win.open();

Comments

  1. Vishal Duggal 2013-04-12

    Behavior change due to TIMOB-6367. Workaround set softKeyboardOnFocus to Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS
  2. Ping Wang 2013-04-12

    PR: https://github.com/appcelerator/titanium_mobile/pull/4155
  3. Ping Wang 2013-04-12

    3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4158
  4. Anshu Mittal 2013-04-17

    Tested with: SDK: 3.1.0 GA Titanium Studio:3.1.0.201304151600 Device: Samsung galaxy note(2.3.6) OS: OSX 10.7.5 Works as expected.

JSON Source