Skip to content

Latest commit

 

History

History
66 lines (54 loc) · 2.54 KB

File metadata and controls

66 lines (54 loc) · 2.54 KB
title Accelerator Key Property | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
Key property
ms.assetid d1570cd9-b414-4cd6-96bd-47c38281eaca
caps.latest.revision 6
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Accelerator Key Property

The following are legal entries for the Key property in the accelerator table:

  • An integer between 0 and 255 in decimal format. The value determines whether the value is treated as ASCII or ANSI as follows:

    • Single-digit numbers are always interpreted as the corresponding key, rather than as ASCII or ANSI values.

    • Values from 1 through 26, when preceded with zeros, are interpreted as ^A through ^Z, which represents the ASCII value of the letters of the alphabet when pressed with the CTRL key held down.

    • Values from 27-32 are always interpreted as three-digit decimal values 027 through 032.

    • Values from 033 through 255, whether preceded by 0's or not are interpreted as ANSI values.

  • A single keyboard character. Uppercase A - Z or the numbers 0 - 9 can be either ASCII or virtual key values; any other character is ASCII only.

  • A single keyboard character in the range A - Z (uppercase only), preceded by a caret (^) (for example, ^C). This enters the ASCII value of the key when it is pressed with the CTRL key held down.

    [!NOTE] When entering an ASCII value, the modifier property options are limited. The only control key available for use is the ALT key.

  • Any valid virtual key identifier. The drop-down Key box in the Accelerator table contains a list of standard virtual key identifiers.

    [!TIP] Another way to define an accelerator key is to right-click an entry or multiple entries in the Accelerator table, choose Next Key Typed from the shortcut menu, and then press any of the keys or key combinations on the keyboard. The Next Key Typed command is also available from the Edit menu.

Requirements

Win32

See Also

Setting Accelerator Properties
Editing in an Accelerator Table
Accelerator Editor