Hi Josh, This is pure JavaScript task. You need something like : onkeypress="if (event.keyCode !== 13) return; doSomething();". I.e. fast return if the key is not ENTER, otherwise do what you need to do.
If you need this for Ajax component/behavior then see its getAjaxCallDecorator() method. See also Wicket's helper JS functions: wicketKeyCode(Wicket.fixEvent(event)). On Wed, Dec 29, 2010 at 8:35 AM, Josh Kamau <joshnet2...@gmail.com> wrote: > Hi Team; > > Is there a way of handling onKey.. events in wicket, where by i will know > which key was pressed. I specifically want to do some ajax update when > Return key is pressed. > > Kind regards. > Josh. >