Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

focus event on NavigationWindow windwos (with examples) #34

Open
tujoworker opened this issue Mar 3, 2014 · 4 comments
Open

focus event on NavigationWindow windwos (with examples) #34

tujoworker opened this issue Mar 3, 2014 · 4 comments

Comments

@tujoworker
Copy link

Hi!

on NavigationWindow you can have a focus/blur listener on opening/closing windows. Nice to have to know if an windows closes "before" the fx is over. There are other reasons as well.

If we add the NavigationWindow into the NappSliderMenu, the focus/blur event listeners don't fire anymore and closing/opening windows. The open/close event listeners works just fin.

Some examples to test:

app.js - NappSliderMenu version
var win = Ti.UI.createWindow({ backgroundColor:'#fff', }); win.addEventListener('focus', function(){ Ti.API.info('focus'); }); win.addEventListener('blur', function(){ Ti.API.info('focus'); }); var navController = Ti.UI.iOS.createNavigationWindow({ window : win, }); var NappSlideMenu = require('dk.napp.slidemenu'); var window = NappSlideMenu.createSlideMenuWindow({ centerWindow: navController, }); window.open();
app.js - default
var win = Ti.UI.createWindow({ backgroundColor:'#fff', }); win.addEventListener('focus', function(){ Ti.API.info('focus'); }); win.addEventListener('blur', function(){ Ti.API.info('focus'); }); var navController = Ti.UI.iOS.createNavigationWindow({ window : win, }); navController.open();
@tujoworker
Copy link
Author

To make it more clear and to supply the examples, "add this code on the bottom" - works on both examples:

setTimeout(function(){ var newWin = Ti.UI.createWindow({ backgroundColor: 'blue', }); newWin.addEventListener('focus', function(){ Ti.API.info('new window focus'); }); navController.openWindow(newWin); }, 3e3);

@tujoworker tujoworker reopened this Mar 3, 2014
@Jemtx
Copy link

Jemtx commented Apr 23, 2014

Hi, Did this get resolved?

@tujoworker
Copy link
Author

No. This issue is still present.

@Jemtx
Copy link

Jemtx commented Apr 23, 2014

Ok thanks!

Kind regards

Lyn

From: tujoworker [email protected]
Reply-To: viezel/NappSlideMenu
<reply+i-28623531-2b386116e7f01440a3ca17f1e1ca99e471cf7f8d-1992017@reply.git
hub.com>
Date: Wednesday, 23 April 2014 11:53
To: viezel/NappSlideMenu [email protected]
Cc: Lyn Major [email protected]
Subject: Re: [NappSlideMenu] focus event on NavigationWindow windwos (with
examples) (#34)

No. This issue is still present.


Reply to this email directly or view it on GitHub
#34 (comment) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant