|looking for a way to fire the F11 key event||David||11/9/11 5:49 AM|
Most browsers have a built in fullscreen mode via the F11 key.
I have a requirement to add a "full screen mode" button to my gwt app
and am looking for a way to fire the F11 Event
F11_KEY = 122;
NativeEvent f11Event = Document.get().createKeyPressEvent(false,
false, false, false, F11_KEY);
Both of these solutions don't seem to work:
1) DomEvent.fireNativeEvent(f11Event, this);
Has anyone tried this before?
|Re: looking for a way to fire the F11 key event||Paul Robinson||11/9/11 6:10 AM|
which seem to suggest you can't do it.
|Re: looking for a way to fire the F11 key event||Thomas Broyer||11/9/11 6:22 AM|
Simply put: you can't. See https://wiki.mozilla.org/Gecko:FullScreenAPI for the rationale.
You'll see however at the very end of that page that Firefox and WebKit (Safari and Chrome, and many more) have implemented the proposed API: