On Jun 21, 4:51 pm, Thomas Broyer <[email protected]> wrote: > On 20 juin, 18:23, Manuel <[email protected]> wrote: > > > What's the best way to implementGmail-like keyboard shortcuts? > > > I'd like to get all keypresses, except those in text boxes. %snip > Two solutions immediately come to mind: %snip > 2. preview events (Event.addNativePreviewHandler); here you'd get > events before they get to their target, including text boxes, so you'd > have to check that the actual target is not a text box.
Thanks! I use the second method, and actually text boxes consume the events, so I don't even need to check for that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
