Feature Request
Customer is using a mix of lightweight and heavyweight windows. They want to get the same behavior on lightweight windows when blur and focus, as it happens in heavyweight windows.
Test case
var win1 = Ti.UI.createWindow(
{backgroundColor:'white',}
//{fullscreen: false}
);
var button1 = Ti.UI.createButton();
button1.addEventListener('click', function() {
var win2 = Ti.UI.createWindow(
{backgroundColor:'black',}
//{fullscreen: false}
);
win2.addEventListener('focus', function() {
Ti.API.info("win2 focused");
});
win2.addEventListener('blur', function() {
Ti.API.info("win2 blur");
});
win2.open();
});
win1.add(button1);
win1.addEventListener('focus', function() {
Ti.API.info("win1 focused");
});
win1.addEventListener('blur', function() {
Ti.API.info("win1 blur");
});
win1.open();
Tested this with today's build, working fine. Testcase:
Closing as Fixed. Verified via steps in comments. SDK: 2.1.0.v20120605140359 Studio: 2.1.0.201206041625 OS: Snow Leopard Android: V8 Devices Tested: Nexus One 2.2.2, Nexus S 4.0.4
Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4967