Override the following in your event behavior:

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
super.updateAjaxAttributes(attributes);

attributes.getDynamicExtraParameters().add(
"return {'ctrl' : attrs.event.ctrlKey, 'shift' : attrs.event.shiftKey}"
   );
}

You can then analyse the parameters 'ctrl' and 'shift' in your #onEvent() hook.

Hope this helps
Sven


On 06/08/2013 10:31 PM, Boris Brinza wrote:
Hello
how to get status of keyboard in onclick handler, i mean status of ctrl or alt keys?
i want to select multiple lines in my table using ctrl-click on lines.
i.ve found some solutions using overriden getCallbackScript, but it seems it;'s working only in older wicket versions, after several hours
i've not found any working solution for wicket 6.
Thanks for any advice

boris


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to