Have you tried checking isSuggestionListShowing() of the SuggestBox in
the KeyUpHandler. If the method returns true You could skip processing
the event. I haven't tried it but it could work.

On Dec 22, 12:35 pm, "ss.require" <[email protected]> wrote:
> Hi there!
> If I select an option in the SuggestBox popup by pressing the enter
> key then onKeyUp event fire. But I don't want that it happens because
> I already handle pressing the enter on the textbox by executing
> another code. My code below:
>
> suggestBox.addSelectionHandler(new SelectionHandler<Suggestion>() {
>                         public void onSelection(SelectionEvent<Suggestion> 
> arg0) {
>                                           //Here my code
>                         }
>                 });
> suggestBox.getTextBox().addKeyUpHandler(new KeyUpHandler() {
>                         public void onKeyUp(KeyUpEvent arg0) {
>                                      if (arg0.getNativeKeyCode() == 13) {
>                                                     //Here another my
> code
>                                 }
>                         }
>                 });
>
> How to disable this or what is the workaround?

--

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