Virtual key codes and virtual key flags
- Last UpdatedJul 26, 2024
- 2 minute read
Some InTouch animation links support keyboard input.
The XML parser translates the name of a virtual key into its virtual key code. Also, the flags for the modifier keys are specified using text instead of numeric bit combinations. Key names are not case sensitive.
InTouch applications can use the virtual key names listed in the following table.
|
Key Represented |
Virtual Key Names |
|---|---|
|
ADD |
Add |
|
Alpha Keys |
A through Z |
|
BACKSPACE |
Backspace |
|
CANCEL |
CtrlBreak |
|
CLEAR |
Clear |
|
Copy |
Copy |
|
Decimal |
Decimal |
|
DELETE |
Delete |
|
Divide |
Divide |
|
DOWN ARROW |
Down |
|
Empty string means no assignment. |
<Blank> |
|
END |
End |
|
ENTER |
Return |
|
ESC |
Escape |
|
Execute |
Execute |
|
F1 |
F1 |
|
F2 |
F2 |
|
F3 |
F3 |
|
F4 |
F4 |
|
F5 |
F5 |
|
F6 |
F6 |
|
F7 |
F7 |
|
F8 |
F8 |
|
F9 |
F9 |
|
F10 |
F10 |
|
F11 |
F11 |
|
F12 |
F12 |
|
F13 |
F13 |
|
F14 |
F14 |
|
F15 |
F15 |
|
F16 |
F16 |
|
HELP |
Help |
|
HOME |
Home |
|
INSERT |
Insert |
|
LEFT ARROW |
Left |
|
MULTIPY |
Multiply |
|
Numeric keys |
1 through 9 |
|
Numeric Keypad 0 |
NUMPAD0 |
|
Numeric Keypad 1 |
NUMPAD1 |
|
Numeric Keypad 2 |
NUMPAD2 |
|
Numeric Keypad 3 |
NUMPAD3 |
|
Numeric Keypad 4 |
NUMPAD4 |
|
Numeric Keypad 5 |
NUMPAD5 |
|
Numeric Keypad 6 |
NUMPAD6 |
|
Numeric Keypad 7 |
NUMPAD7 |
|
Numeric Keypad 8 |
NUMPAD8 |
|
Numeric Keypad 9 |
NUMPAD9 |
|
NUM LOCK |
NumLock |
|
PAGE UP |
PageUp |
|
PAGE DOWN |
PageDown |
|
PRINT SCREEN |
|
|
RIGHT ARROW |
Right |
|
SELECT |
Select |
|
Separator |
Separator |
|
SPACEBAR |
Space |
|
SUBTRACT |
Subtract |
|
TAB |
Tab |
|
UP ARROW |
Up |
Two modifier keys are supported. Modifier keys can be specified separately or in combination for the CKEYFLAGS element. The modified name is the element value. A modifier key is applied as long as the modifier name is in the attribute value string.
|
Name |
Key Represented |
|---|---|
|
CTRL |
CONTROL key must be pressed with regular key. |
|
SHIFT |
SHIFT key must be pressed with regular key. |
|
CTRL + SHIFT |
Both the CONTROL and SHIFT keys must be pressed. |
To generate a CTRL+A sequence, the XML is:
<VirtualKeyType>
<KeyCode>A</KeyCode>
<KeyFlags>CTRL</KeyFlags>
</VirtualKeyType>