Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15700] ANDROID: focus event not getting triggered in window

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2018-06-29T20:40:34.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsAndroid
LabelsAndroid
ReporterShameer Jan
AssigneeUnknown
Created2013-11-12T06:38:06.000+0000
Updated2018-06-29T20:40:34.000+0000

Description

Problem Description

Steps to reproduce 1.Run following code Expected result: All alert box should appear Actual result: There is no alert

Test case

var win = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});
win.addEventListener('focus', function(){
	var a=10;
	var b=5;
	var c=(a+b)*b;
	alert(a);
	alert(b);
	alert(c);
});
win.open();

Comments

  1. Lokesh Choudhary 2013-11-13

    The following anvil PR's are affected due to this ticket: https://github.com/appcelerator/titanium_mobile/pull/4806 https://github.com/appcelerator/titanium_mobile/pull/4863 https://github.com/appcelerator/titanium_mobile/pull/4876 https://github.com/appcelerator/titanium_mobile/pull/4943 As of now we QE will comment these tests during anvil run & when the ticket is fixed will uncomment the tests again.
  2. Joshua Quick 2018-06-29

    Unable to reproduce in Titanium 6.0.2. Looks like it was already fixed. The window is definitely getting the "focus" when opened.

JSON Source