The visual focus indicator is there for accessibility reasons so people who
cannot use a mouse know what has focus if they are using a keyboard or voice
commands or chin-operated joysticks, suck.blow controllers, head-switches
etc. so they know where they are
If this isn't a concern, then

        Button b = new Button("Click Me", new ClickHandler()
        {
            @Override
            public void onClick(ClickEvent event)
            {
                ((Button) event.getSource()).setFocus(false);
            }
        });


Ian

http://examples.roughian.com


2009/5/25 Zak <[email protected]>

>
> Hi all-
>
> I still haven't got my head wrapped around using handlers:
>
> I have a class ESButton extends Button. I would like it so that each
> instance of an ESButton, when clicked, fires a blur event on itself.
> I'm sure some of you have noticed how (at least in Firefox), when you
> click on a button it stays focused (has that black dotted outline
> around the button text). I would like to blur the button
> automatically, so the user does not see this outline.
>
> How would I do this? Or is there a better way to solve this issue?
>
> Here's the ESButton class in its entirety: http://pastie.org/488573
>
> Thanks for your help!
>
> Zak
> >
>

--~--~---------~--~----~------------~-------~--~----~
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