View Full Version : Keypress Events for a Mac (FireFox)
08-15-2005, 07:08 PM
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.
08-15-2005, 08:25 PM
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?
08-15-2005, 08:42 PM
That sounds like what I want to do. Thanks for letting me know they exist!
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.