Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2006
    Location
    Oslo, Norway
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Don't let checkbox be checked when pushing space

    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?
    Drømmejenta: Kristen jente som progger Python!

  • #2
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    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.
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #3
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Quote Originally Posted by StupidRalph View Post
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •