Clicking button doesn't cause focus on Mac?

Cheetham, Anastasia acheetham at ocadu.ca
Wed Feb 15 16:56:58 UTC 2012


I'm observing a strange problem I'm hoping someone might be able to shed some light on.

- On a Mac, when the mouse is used to click on an HTML button, the button does not get focus. I've observed this in Firefox, Safari and Chrome.

- On Windows, the button *does* get focus.


I've created a very simple test file that illustrates this using our DebugFocus utility:
    https://github.com/acheetham/infusion/tree/focusBlurTest

The file is in the manual-tests folder:
    https://github.com/acheetham/infusion/blob/focusBlurTest/src/webapp/tests/manual-tests/html/focusBlurTest.html

If you view the console while tabbing and clicking about the various elements on this page, you'll see that on a Mac, clicking on one of the buttons will blur any other element that has focus, but will not cause a focus event on the button.

Does anyone have any idea why this might be happening?


NOTE: I've noticed that the DebugFocus utility does not log= the focus and blur events in Chrome or Safari (regardless of platform). I haven't yet figured out why - any ideas?

-- 
Anastasia Cheetham     Inclusive Design Research Centre
acheetham at ocadu.ca           Inclusive Design Institute
                                        OCAD University



More information about the fluid-work mailing list