"Mr. x" wrote on 14/11/2003:
Hello,
I want to capture the event when the <ctrl> key is pressed.
How can I do that ?
This is under IE 6 (I don't have any other browsers, so someone else
will have to chip in).
A onkeydown event is fired when the CTRL key is pressed, but the
event.which and event.modifiers properties are undefined (even when a
letter key is pressed). This means that there is no reliable way to
detect it. The onkeypress event doesn't work with modifier keys
(ctrl, alt, shift, etc).
Do Mac keyboards even have CTRL keys?
Mike
--
Michael Winter
M.Winter@[no-spam]blueyonder.co.uk (remove [no-spam] to reply)