
March 5th, 2004, 06:22 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
KeyEvent -> <select> drop-down
Hi!
I am looking for a way to make a select box drop-down
by a single key stroke (ex. [F2]).
I am aware of that [ALT] + [ARROW DOWN] is the default
key-shortcut for making a select box open, but I need to use the [F2] - key
(Open field) for this.
I have tried the onkeydown event, redirecting the key [F2] to [ALT] + [ARROW DOWN],
but as [ALT] has only got the read (no write) property i can't override it this way.
I see in msdn, that there is a method called click(), and that this should
trigger/simulate i mouseclick. - But as far as I know this only triggers an
onClick event.
Any suggestions?
Regards
Jon T. Aksland
|