#301 – Using Access Keys
May 17, 2011 6 Comments
An access key is a keyboard shortcut assigned to a control that has an associated text label. Access keys allow users to activate a control using the keyboard rather than using the mouse to click on the control.
Access keys are triggered by pressing the ALT key along with one of the characters in the control’s label. When you click or hold the ALT key, Windows will show you the access keys for all controls in the current window by underlining the character used for the access key.
Here’s the main window for an application that was just started. The access keys are not visible.
When you press the ALT key, Windows underlines the characters corresponding to the access keys.
You can activate a control by pressing the associated access key after pressing ALT. Pressing ALT-H in this window would be equivalent to clicking on the “Ham” button.


Pingback: #302 – Access Keys for Controls that Don’t Have a Caption « 2,000 Things You Should Know About WPF
Pingback: #303 – Define an Access Key for a Control Using an Underline « 2,000 Things You Should Know About WPF
Pingback: #305 – Guidelines for Defining Access Keys « 2,000 Things You Should Know About WPF
Pingback: #304 – Defining an Access Key That Gives Focus to a Different Control « 2,000 Things You Should Know About WPF
Why is it that with this implementation, pressing ALT is not actually a requirement anymore?
How can I force it to be ALT+access key always?
I’m not sure I understand your question–you do still need to press ALT and then the access key.