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();
Behavior change due to TIMOB-6367. Workaround set softKeyboardOnFocus to Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS
PR: https://github.com/appcelerator/titanium_mobile/pull/4155
3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4158
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.