1

In my JQuery code, I have something like:

onKeyDown(event)
{
    if (event.ctrlKey) ...
}

However, on a Mac, I want to know whether the command/key (not control) key is pressed.

What's the best way to do this?

jfriend00
  • 637,040
  • 88
  • 896
  • 906
user380719
  • 9,393
  • 15
  • 52
  • 86
  • 1
    possible duplicate of [jQuery key code for command key](http://stackoverflow.com/questions/3834175/jquery-key-code-for-command-key) – Treffynnon Jan 23 '12 at 15:06

0 Answers0