On Sep 22, 7:04 pm, Aduffy <[EMAIL PROTECTED]> wrote:
> I am trying to figure out how to detect if the user has the command
> key pressed when clicking on an image..
>
> I have this working for Shift and Alt, but for the life of me I cant
> figure out an equivalent for the command key.
> I have tryed event.cmdKey event.commandKey
>
>        if(event.shiftKey) {
>                 console.log("shift key was pressed");
>         }else if(event.altKey) {
>                 console.log("Alt key was pressed");
>         }else{
>                 console.log("regular click");
>         }
>
> If any one could help, it would be greatly appreciated!!

I believe it's `event.metaKey`.

--
kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to