Tuesday, October 25, 2011

Re: Howto listen for global key down events



On Mon, Sep 19, 2011 at 12:04 PM, Y2i <yuriry@gmail.com> wrote:
Have you tried Event.addNativePreviewHandler() ?


I was using this option to define short cut keys in the screen. but i have 2-3 screens in my application. so this short cut keys should work differently on screen by screen. So I had to define NativePreviewHandler in each screen, and remove them when application unload that screen (to avoid NativePreviewHandler being fired again even after quiting from that screen).

but problem arose when I wished to define a common header widget. (just like we use header.jsp).
I want to define a few shortcuts where ever this header has been used. but it will be a burden to remove NativePreviewHandler wherever it has been used. ie, this header should be independant.

Any idea or workaround to achieve this?.

Thanks.

--
Sarjith
 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wzgBDGYEFXAJ.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment