#301 – Using Access Keys

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.

About Sean
Software developer in the Twin Cities area, passionate about .NET technologies. Equally passionate about my own personal projects related to family history and preservation of family stories and photos.

6 Responses to #301 – Using Access Keys

  1. Pingback: #302 – Access Keys for Controls that Don’t Have a Caption « 2,000 Things You Should Know About WPF

  2. Pingback: #303 – Define an Access Key for a Control Using an Underline « 2,000 Things You Should Know About WPF

  3. Pingback: #305 – Guidelines for Defining Access Keys « 2,000 Things You Should Know About WPF

  4. Pingback: #304 – Defining an Access Key That Gives Focus to a Different Control « 2,000 Things You Should Know About WPF

  5. Sevalle says:

    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?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 131 other followers