View Full Version : Don't let checkbox be checked when pushing space

11-08-2006, 12:51 PM
I have a checkbox. When I point my mouse over it it gets checked. But when I hit space, the checkbox is unchecked again. How to be able to control this?

11-10-2006, 04:32 PM
I think you are going to have to provide more information. Its not standard for a checkbox to become by simply mousing over it. Are you using javascript's onmouseover event to check the box? If so, then the checkbox receives focus once it checks itself. Just shift the focus after its checked. Also, if you are using javascript, you might want to have this thread moved. If you are not, then describe why/how the checkbox is being checked.

Bill Posters
11-10-2006, 04:37 PM
Just shift the focus after its checked.
I'd reconsider whether that's such a good idea.
Messing with the tab/focus order can disrupt a user's progression around a page, particularly those using a keyboard to navigate.