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?
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?