Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9722] Android: Textfield:Focus event is fired when soft keyboard 'done' button is pressed.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-02-26T11:47:43.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and060112
ReporterShyam Bhadauria
AssigneeShameer Jan
Created2012-06-22T03:05:23.000+0000
Updated2013-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.

Comments

  1. Shameer Jan 2013-02-26

    The problem cannot reproduce with master release 3.1.0 and latest version 3.0.2
  2. Shyam Bhadauria 2013-03-05

    Issue is not reproducing with reported as well as latest sdk(3.1.x).So closing it.

JSON Source