Virtual Key Symbolic Names

The Virtual Key Symbolic Names provide a convenient notation for specifying certain control characters to be transmitted into the input buffer in response to a click event on the control; See the CONTROL class cmd parameter, the XTREE XTR.kbdstr, the XTEXT TXC.kbdstr, etc.) The names all start with VK_ followed by the name of the key as it relates to the keyboard. The names in the table below can also be altered to indicate the SHIFT or CONTROL version by inserting a “^” and/or lower case “s” after the underscore. For example, “VK_^UP refers to the keystroke Control-Up Arrow, “VK_sDOWN” refers to Shift-Down Arrow, and “VK_^sF2” refers to Control-Shift-F2.

Note that the Virtual Key Symbolic Names can optionally be enclosed in percentage signs ("%"), e.g. "%VK_RIGHT%", which act only as syntax delimiters. Such delimiters would be unnecessary and superfluous in most cases, except in the case where multiple Virtual Key Symbolic Names are being combined. For example, to encode the sequence TAB followed by ENTER, you would need to use the format "%VK_TAB%%VK_ENTER%", since "VK_TABVK_ENTER" would not be properly recognized.

Virtual Key

Meaning

VK_BACK

Backspace

VK_DECIMAL

Decimal point on numeric keypad

VK_DELETE

Delete key

VK_DOWN

Down arrow

VK_DIV

Forward slash ( "/" ) on the numeric keypad

VK_END

End key

VK_ENTER

Enter key (same as VK_RETURN)

VK_ESCAPE

Escape key

VK_HOME

Home key

VK_INSERT

Insert key

VK_LEFT

Left arrow

VK_MINUS or VK_SUB

Minus key on the numeric keypad

VK_NEXT

Next Page or Page Down Key

VK_PLUS or VK_ADD

Plus key on the numeric keypad

VK_PRIOR

Prev Page or Page Up Key

VK_RETURN

Return key (same as VK_ENTER)

VK_RIGHT

Right arrow

VK_TAB

Tab key

VK_UP

Up arrow

VK_F1 thru VK_F12

F1 thru F12 keys

VK_x{r,d}F###

Extended virtual function key codes.

^x

Control x where "x" is any character A-Z or [, /, ], ^, _).