Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4622] Window focus not firing in a navigation group

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-10-27T14:48:26.000+0000
Affected Version/sRelease 1.7.1
Fix Version/sRelease 1.8.0
ComponentsiOS
Labelsn/a
ReporterRick Blalock
AssigneeBlain Hamon
Created2011-07-08T08:12:54.000+0000
Updated2011-10-27T14:48:34.000+0000

Description

Window focus events do not fire on windows in a navigation group when navigating BACK using the auto-generated back button. Sample code below:
var win 		= Ti.UI.createWindow();
var rootWin 	= Ti.UI.createWindow();

rootWin.addEventListener('focus', function()
{
	Ti.API.info("rootWin FOCUSED");
});

var btnOpenWin = Ti.UI.createButton({
	title	: "open new window",
	width	: 200,
	height	: 35
});

btnOpenWin.addEventListener('click', function()
{
	var win2 = Ti.UI.createWindow();
	navGroup.open(win2, {animated: true});
});

rootWin.add(btnOpenWin);
var navGroup 	= Ti.UI.iPhone.createNavigationGroup({
	window: rootWin
});

win.add(navGroup);
win.open();

Comments

  1. Blain Hamon 2011-08-05

    Pull request https://github.com/appcelerator/titanium_mobile/pull/338 pending.
  2. Alan Vaghti 2011-08-29

    Passed as expected on: iPod 3rd Gen 4.0.2 iPad 2 4.3.2 iPhone 4 4.2.10 SDK: version=1.8.0 timestamp=08/26/11 14:53 githash=8e978eb...

JSON Source