parkerea
asked on
Display drop-down list in IE via keyboard? F4 does not work
Is there a standard way in Internet Explorer to get a drop-down list to display its contents using only the keyboard? For a standard Windows app, "F4" expands a drop down list the same as clicking on the down arrow, but in IE "F4" changes focus to the URL address bar and drops it down -- not what I want.
The only option I can find is to tab into the drop-down and use the cursor up & down arrow keys to go through each entry one at a time, but this is very inconvenient, plus it triggers JavaScript on some pages (like our corporate HR app) with each change.
The reason I need this function is I am writing voice recognition scripts for people with hand related disabilities, and most of the voice recognition program's actions are taken via simulating keyboard entry by voice command. In general, mouse clicks are not an option (with some exceptions). If version matters, we use IE 5.5 & 6.
Thanks in advance,
parkerea
The only option I can find is to tab into the drop-down and use the cursor up & down arrow keys to go through each entry one at a time, but this is very inconvenient, plus it triggers JavaScript on some pages (like our corporate HR app) with each change.
The reason I need this function is I am writing voice recognition scripts for people with hand related disabilities, and most of the voice recognition program's actions are taken via simulating keyboard entry by voice command. In general, mouse clicks are not an option (with some exceptions). If version matters, we use IE 5.5 & 6.
Thanks in advance,
parkerea
I'm not sure if this will help you or not, and if it does it is IE only AFAIK
You can assign an access key to elements in a form such as a select. When the combination of alt and the specified key are pressed, it causes the browser to set focus to the element designated for that accesskey:
<select name="one" accesskey="x">
a bunch of options
</select>
<select name="two" accesskey="y">
a bunch of options
</select>
alt+x will result in focus going to select "one" and alt+y will result in the focus shifting to select "two"
I hope that helps, because I don't know of any other way to set hotkey focusing.
Cd&
You can assign an access key to elements in a form such as a select. When the combination of alt and the specified key are pressed, it causes the browser to set focus to the element designated for that accesskey:
<select name="one" accesskey="x">
a bunch of options
</select>
<select name="two" accesskey="y">
a bunch of options
</select>
alt+x will result in focus going to select "one" and alt+y will result in the focus shifting to select "two"
I hope that helps, because I don't know of any other way to set hotkey focusing.
Cd&
ASKER
Thanks, COBOLdinosaur, but I was probably not clear in my original note -– I am looking for a keyboard (non-mouse) method to drop-down a list as a user, not as a web developer. Your method would work if I had control over the web pages the user visits, but unfortunately I do not.
The voice recognition program basically does the equivalent of I called "stuffing the keyboard buffer" in the old DOS days. As a user talks into it, it recognizes the words as text to type, which are pushed into event buffer for the active window (like "SendKeys" if you are familiar with VB). The voice recognition is actually quite sophisticated, and can execute commands, macros, and certain kinds of mouse clicks, but I do not see any method to use them here.
Thanks again,
parkerea
The voice recognition program basically does the equivalent of I called "stuffing the keyboard buffer" in the old DOS days. As a user talks into it, it recognizes the words as text to type, which are pushed into event buffer for the active window (like "SendKeys" if you are familiar with VB). The voice recognition is actually quite sophisticated, and can execute commands, macros, and certain kinds of mouse clicks, but I do not see any method to use them here.
Thanks again,
parkerea
Yeah like I said IE isn't very open to changing the way it behaves to keyboard input. :>(
Not sure but you might be able to do this using the IEAK. But that would mean the user would have to use the browser you built from the IEAK.
ieak.microsoft.com
ieak.microsoft.com
If IEAK won't let you do it, it probably only leaves something custom in JAVA, or perhaps a DLL that can be installed as an activeX object.
Cd&
Cd&
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oops, didn't notice that you mentioned the Tabbing. Alt+Down will expand the dropdown menu.
ASKER
BINGO! Yep -- Alt+DownArrow did the trick. That simple command is conspicuously missing from the "Internet Explorer keyboard shortcuts" in the IE help.
Thanks!
parkerea
Thanks!
parkerea
The Crazy One