On 4 Feb, 17:20, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > Another way would be to use the ctrlKey property of the Click event: > > $('#element').click(function(e) > { > if (e.ctrlKey) > { > do_something(); > } > }); > > jQuery also normalizes this into the metaKey attribute which detects the CMD > key on a Mac: > > $('#element').click(function(e) > { > if (e.metaKey) > { > do_something(); > } > });
LOL!! much simpler. thanks, I didn't know that :)