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