[TIMOB-9720] Android: Textfield:Soft keyboard is not displayed after focus event fired,one more click is needed for its display.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2018-06-29T20:45:49.000+0000 |
Affected Version/s | Release 2.1.0, Release 3.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, qe-and060112 |
Reporter | Shyam Bhadauria |
Assignee | Unknown |
Created | 2012-06-22T02:26:17.000+0000 |
Updated | 2018-06-29T20:45:49.000+0000 |
Description
This is not a regression. It exists as far as 1.8.2
Steps to reproduce:
1) Use the below code:
var win = Ti.UI.createWindow();
win.backgroundColor= 'red';
var tf = Titanium.UI.createTextField({
backgroundColor: "#fff",
width : 250,
height : 80,
focusable : true,
});
win.add(tf);
tf.addEventListener('focus', function() {
alert('Focus fired');
});
win.open();
It creates a textfield on window with its focusable property to true.
2) Run the app.
Expected result:
The soft keyboard should be displayed with the app running.
Actual result:
No soft keyboard is displayed unless user clicks on textfield.
This is probably related to another ticket where focus event is not firing for the text field.
Tested on 2.1.2 GA and 2.1.3.v20120915120319, Galaxy note(v 2.3.6), The keyboard is popped up only when app is launched in portrait mode. If the app is launched in landscape mode, keyboard is not popped up.
issue reproduces with sdk 3.0.2 and 3.1.0 .
Cannot reproduce in Titanium 6.0.2. Assumed fixed.