struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <>
Subject Re: hotkeys
Date Fri, 09 Jun 2006 02:08:01 GMT
Hi Marcus,

Take a look at the accessKey attribute, I think that's what you want... 
however, I don't believe it is possible to assign function keys, I think 
you only have letters and numbers, and maybe punctuation marks.

You could do what you want via scripting though, where I believe you can 
capture function keys.  Try setting up a key handler for the document 
itself, and just call focus() on the element you want to receive focus 
when the appropriate key is pressed.


Miguel Galves wrote:
> What exactly do you want to do ?
> On 6/8/06, Marcus <> wrote:
>> Is there a way of adding hotkeys to a form field in struts?
>> I would like to add the keys F1-F4 to my form fields 1-4.
>> Thx,
>> Marcus
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
AIM: fzammetti
Yahoo: fzammetti
Java Web Parts -
Supplying the wheel, so you don't have to reinvent it!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message