esc from fullscreen using video in full screen minimizes whole app in flex
问题 I have an application intended to run in full screen mode. In order to prevent it from getting out of full screen I did: protected function windowedapplication_preinitializeHandler(event:FlexEvent):void { nativeWindow.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown); nativeWindow.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; } protected function onKeyDown(event:KeyboardEvent):void { if (event.keyCode == 27) { event.preventDefault(); } } That prevents the app getting