Ok - this might catch out other folks even though it was something of
a "donkey" moment.

I was adding the "HandlesAllFocusEvents" instance as a FocusHandler ..
so of course onBlur would never be called.  I would need to also add
the same instance as a BlurHandler for that to be the case.

:)


On May 3, 11:25 am, chillyspoon <chillysp...@gmail.com> wrote:
> Hi everyone,
>
> I'm in the middle of integrating a RichTextArea into an existing
> project (GWT 1.7.1) - I've found to my surprise with the code below
> that the onBlur handler is simply never being called.  I'm developing
> on Windows 7 and testing in FF3.6, Safari 4 and IE8. Behavior is the
> same across the board.
>
> The onFocus log item appears correctly when, for example, the user
> clicks into the editor but onBlur is never called.
>
> Any ideas?
>
>         editor.addFocusHandler(new HandlesAllFocusEvents()
>         {
>             @Override
>             public void onFocus(FocusEvent focusEvent)
>             {
>                 GwtTools.log("Focus");
>             }
>
>             // todo blur appears to be not getting called at all!!
>             @Override
>             public void onBlur(BlurEvent blurEvent)
>             {
>                 GwtTools.log("Lost focus");
>             }
>         })
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to