OK, so I've isolated it to the following routine inside
com.google.gwt.user.client.ui.Composite.class

@Override
  public void onBrowserEvent(Event event) {
    // Fire any handler added to the composite itself.
    super.onBrowserEvent(event);

    // Delegate events to the widget.
    widget.onBrowserEvent(event);
  }


How do I declare my class so that the two onBrowserEvent() calls don't
wind up in the same routine?

On Apr 8, 6:51 pm, jchimene <[email protected]> wrote:
> Hi,
>
> Is anybody else seeing duplicate events with a (now deprecated)
> KeyBoardListener?
>
> I get duplicate events even when I replace the deprecated handler with
> the 1.6 event version. The target/source widget IDs are the same for
> both events.
>
> The problem does not occur using the 1.5.3 library.
>
> This is pretty simple stuff:
> suggestBox.addKeyboardListener(new KeyboardListenerAdapter() {
>         public void onKeyDown(Widget sender, char keyCode, int modifiers) {
>                 if (191 == (int)keyCode) { // question mark
>                         GWT.log("help",null);
>                 }
>         }
>
> });
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to