tab around to see where focus is. If it somehow gets out to the browser, then you're stuck
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Giles Roadnight Sent: Tuesday, May 20, 2008 8:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Listening for global keyboard events I have the following code in one of my components: private function onInit(e:Event):void { stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function reportKeyDown(event:KeyboardEvent):void { trace("Key Pressed: " + String.fromCharCode(event.charCode) + " (character code: " + event.charCode + ")"); } this works fine until I have created and destroyed a popup with PopupManager. I then stop getting the events. If I click anywhere on the stage I start getting them again. does the stage lose focus when you call PopupManager.removePopUp()? How do I re-apply the focus to the stage? Thanks -- Giles Roadnight http://giles.roadnight.name <http://giles.roadnight.name>