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??