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
  • 683,504
  • 96
  • 985
  • 979
user380719
  • 9,663
  • 15
  • 54
  • 89
  • 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