[jQuery] click-event and keyCode
hi,
is it possible to distinguish between a click with or without a ctrl/alt key pressed.
i want to simulate "selecting items" with Ctrl+click and click only to execute an action.
$("p").bind("click", function() {
// how to find out what keys where pressed
if (ctrl-pressed) {
start select action
}
else {
start normal action
}
})
thanks
stefan
--
Stefan Kilp
SK-Software, Entwicklung & Beratung
email: kilp@sk-software.de
fon : +49 6151 93344-0
fax : +49 6151 93344-20
Herta-Mansbacher-Str. 98
64289 Darmstadt, Germany.
-----------------------------------------------------
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/