You can do this on the client side relatively easily. Just bind a javascript event handler to the onkeydown event in the browser.
When these key(s) are depressed change a form input to indicate which keys are pressed. When your Ajax event submits, you can check the model of the component the input is bound to to determine if the key(s) were pressed. cheers, Richard. On Tue, Mar 8, 2011 at 9:59 PM, Antoine van Wel <[email protected]>wrote: > Hi, > > when clicking an (ajax)link, or a checkbox, etc, on the server side > I'd like to know whether the shift, ctrl or alt keys are pressed at > the same time. > > So I figure I need to fetch via JavaScript and adapt the ajax call > with some extra parameters. > Any thoughts how to do that in a nice & clean way in 1.5 without too > much hacking involved? > > > regards, > Antoine > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Richard Nichols http://www.richardnichols.net/ :: http://onmydoorstep.com.au/
