Wednesday, October 7, 2015

simulate F11 Key event with gwt

Hello everybody,

Actually I'm newbie in developing with gwt, and I have to add a "full screen mode" button to my gwt app 
and am looking for a way to fire the F11 Event.

So I created a button to which I associated a UiHandler:





private final int F11_KEY = 122; 

@UiHandler("Button")
public void onKeyButtonClick(ClickEvent event){
Document.get().createKeyPressEvent(false, false, false, false, F11_KEY);
}

but that didn't work for me,

if someone could help me find the solution, I'll be very grateful.


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment