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.
Frank
Miguel Galves wrote:
What exactly do you want to do ?
On 6/8/06, Marcus <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]