you can check 'key code' if it is F11, handle it and return false (cancel bubble)
On Wed, Oct 7, 2015 at 5:34 PM, Deepak MS <[email protected]> wrote: > Hi there, > Right now when I hit F11 on the keyboard on any browser, the web > application goes into full screen mode. I am trying to give a button for > users which makes them go to full screen. I just want to dispatch this > in-built F11 event when I click on some button in the application. > > Any ideas how can that be achieved? > > I assume it would be on stage. I can dispatch keyboard event like this: > stage.dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_UP)); > > But how do I dispatch F11 in particular? > -- WBR Maxim aka solomax
