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
    Aug 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh Keypress Events for a Mac (FireFox)

    I am having some issues getting FireFox on a Mac to recognize that the control and shift keys have been pressed. The same code that I am using for FF/IE on Windows doesn't capture control and shift for some reason, although it does capture other events (like spacebar).

    Any help would be appreciated.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not sure if keypress events on control keys are supported very widely, but is the keypress what you really need? Don't you want to know whether a particular control key is pressed at the point when another key event happens?

    If so, there are event properties for it - "ctrlKey", "shiftKey", "altKey" and "metaKey" [the command key on a mac, and afaik not assigned on windows], which are true or false by whether that key is pressed (or locked, iirc, such as from shift-lock)

    If not, can you expand on what you're actually trying to do?
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That sounds like what I want to do. Thanks for letting me know they exist!


  •  

    Posting Permissions

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