Adding a FocusHandler to the TextBox isn't quite what I need. The TextBox 
will blur when the user arrows down into the suggestion display. When this 
occurs they really haven't left the SuggestBox yet as they're still 
navigating through the suggestions. I'd be more interested in a blur event 
that is fired only when they're no longer in the TextBox and also no longer 
in the SuggestionDisplay. Any ideas on how to pull that off? I've tried 
several ideas and have come close but in some cases I end up with the blur 
event being fired twice.

Thanks,

Norm

On Tuesday, February 9, 2010 3:00:23 AM UTC-6, Thomas Broyer wrote:
>
> On Feb 9, 6:32 am, bestey <bes...@gmail.com> wrote:
> > Just wondering if there is an easy way to know when focus is lost from
> > a SuggestBox?
> > It doesn't implement HasFocusHandlers and HasBlurHandlers but it does
> > have HasFocus!
> > Any advice would be appreciated.
>
> Attach your handlers to the underlying TextBoxBase
> (suggestBox.getTextBox().addBlurHandler(...)) as you're told to do in
> the JavaDoc for the deprecated addFocusListener:
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/SuggestBox.html#addFocusListener(com.google.gwt.user.client.ui.FocusListener)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to