Thank you! That worked perfectly.
On May 15, 3:05 am, rjcarr <[email protected]> wrote: > Instead of adding your event handlers to your composite you should > instead add them to the main component in your widget. Since you need > to capture mouse and key events you'll want to use a FocusPanel > (instead of a FlowPanel). You'll want to add a ClickHandler and one > of the Key Handlers to the FocusPanel. > > Good luck! > > On May 15, 1:11 am, HBA <[email protected]> wrote: > > > > > > > Hi, > > > I have written a small widget by extending the Composite (containing a > > flowPanel, image & lable). I'm using the onBrowserEvent method to > > handle mouse clicks. That works well. > > > However, now I'm trying to capture arrow key events. I'm not able to > > capture any keyboard events at all. I have even tried the sinkEvent > > method; sinkEvents(Event.ONKEYDOWN); > > > I'm guessing it is because my widget can't accept input. > > > Thanks in advance. > > > Houman > > > -- > > 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 > > athttp://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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://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 [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.
