[TIMOB-9722] Android: Textfield:Focus event is fired when soft keyboard 'done' button is pressed.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-02-26T11:47:43.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, qe-and060112 |
Reporter | Shyam Bhadauria |
Assignee | Shameer Jan |
Created | 2012-06-22T03:05:23.000+0000 |
Updated | 2013-03-14T02:57:29.000+0000 |
Description
This is not a regression.It exists as far as 1.8.2.
It occurs only on android 4.0.2 samsung galaxy nexus.
This is working fine on android 2.2 and android 3.2
Steps to reproduce:
1) Use the code below:
var win = Ti.UI.createWindow();
win.backgroundColor='red';
var tf1 = Titanium.UI.createTextField({
backgroundColor: "#fff",
width : 250,
height : 80,
focusable : true,
});
win.add(tf1);
tf1.addEventListener('focus', function() {
alert('Focus fired');
});
win.open();
2) Run the app.
3) Click 'ok'on the alert displayed and again click the textfield.
4) Press 'done' on the soft keyboard.
Expected result:
2) After step 2,app should be running and an alert should be displayed stating 'Focus fired'.
3) The soft keyboard should be invoked.
4) The soft keyboard should get dismissed without any alerts.
Actual result:
2) After step 2,app should be running and an alert should be displayed stating 'Focus fired'.
3) The soft keyboard should be invoked.
4) The soft keyboard should get dismissed but a focus alert 'Focus fired' is displayed.
Focus event should not get fired.
The problem cannot reproduce with master release 3.1.0 and latest version 3.0.2
Issue is not reproducing with reported as well as latest sdk(3.1.x).So closing it.