I have no idea this works, but i have seen a few examples where you would 
dispatch sort of a fake event on the button you want to have focus on and it 
works. so maybe try that


----- Original Message ----
From: Corey Smaller <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, January 24, 2008 7:27:09 PM
Subject: [flexcoders] keyboard event function in popup window

ok, so my app uses all KeyboardEvent/ keyCodes for navigation. It
worked wonderfully until I created a popup window which also has
keyboard nav between two buttons, one being 'close this popup'. I
wanted to set the focus back to the button that called the popup
window when you click the close button.

The setfocus goes back to the button in the main app as long as I
dont call: PopUpManager. removePopUp( this). I can see the nav working
behind the popup. BUT once i enable the removePopUp the button loses
focus and when I try to navigate using keyboard it goes into the popup
windows function for handling keyboard events, even though I just
removed it. does anyone know how to get around this?? 





      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Reply via email to