Accelerator and Combination Key Values
Accelerator Key Values
The following key values can be used for menu accelerators, and are identical to the key values returned when Keypress "t" Events are enabled in a window:
Key |
Hex Value |
---|---|
Delete |
$007F$ |
Up arrow |
$012D$ |
Down arrow |
$012E$ |
Right arrow |
$012F$ |
Left arrow |
$0130$ |
Page up |
$0131$ |
Page down |
$0132$ |
Home |
$0133$ |
End |
$0134$ |
Insert |
$0138$ |
Backtab |
$013B$ |
Keypad 0 (numeric keypad with Num Lock off) |
$013E$ |
Keypad 1 |
$013F$ |
Keypad 2 |
$0140$ |
Keypad 3 |
$0141$ |
Keypad 4 |
$0142$ |
Keypad 5 |
$0143$ |
Keypad 6 |
$0144$ |
Keypad 7 |
$0145$ |
Keypad 8 |
$0146$ |
Keypad 9 |
$0147$ |
F1 |
$014B$ |
F2 |
$014C$ |
F3 |
$014D$ |
F4 |
$014E$ |
F5 |
$014F$ |
F6 |
$0150$ |
F7 |
$0151$ |
F8 |
$0152$ |
F9 |
$0153$ |
F10 |
$0154$ |
F11 |
$0155$ |
F12 |
$0156$ |
F13 (BBj 19.10+) |
$0157$ |
F14 (BBj 19.10+) |
$0158$ |
F15 (BBj 19.10+) |
$0159$ |
F16 (BBj 19.10+) |
$015A$ |
F17 (BBj 19.10+) |
$015B$ |
F18 (BBj 19.10+) |
$015C$ |
F19 (BBj 19.10+) |
$015D$ |
F20 (BBj 19.10+) |
$015E$ |
F21 (BBj 19.10+) |
$015F$ |
F22 (BBj 19.10+) |
$0160$ |
F23 (BBj 19.10+) |
$0161$ |
F24 (BBj 19.10+) |
$0162$ |
Keypad * (* on numeric keypad) |
$0174$ |
Keypad - (- on numeric keypad) |
$0175$ |
Keypad + (+ on numeric keypad) |
$0176$ |
Keypad / (/ on numeric keypad) |
$0177$ |
Combination Key Values
To include Shift, Ctrl, Alt, and/or Cmd key combinations in accelerators, add the following values to the base key number:
Combination |
Hex Value |
---|---|
Shift |
$1000$ |
Ctrl |
$2000$ |
Shift + Ctrl |
$3000$ |
Alt |
$4000$ |
Shift + Alt |
$5000$ |
Ctrl+ Alt |
$6000$ |
Shift + Ctrl + Alt |
$7000$ |
Cmd |
$8000$ |
Cmd + Shift |
$9000$ |
Cmd + Ctrl |
$A000$ |
Cmd + Shift + Ctrl |
$B000$ |
Cmd + Alt |
$C000$ |
Cmd + Shift + Alt |
$D000$ |
Cmd + Ctrl + Alt |
$E000$ |
Cmd + Shift + Ctrl + Alt |
$F000$ |
Alt key combinations are only available in Visual PRO/5 Rev. 2.0x and later.
Cmd key combinations are only available in BBj macOS.
For example, the following identifies the values for the possible combinations to be used with the F1 key (value $014B$):
Combination |
Hex Value |
---|---|
Shift + F1 |
$114B$ |
Ctrl + F1 |
$214B$ |
Shift +Ctrl + F1 |
$314B$ |
Alt + F1 |
$414B$ |
Shift + Alt + F1 |
$514B$ |
Ctrl + Alt + F1 |
$614B$ |
Shift + Ctrl + Alt + F1 |
$714B$ |
Cmd + F1 |
$814B$ |
Cmd + Shift + F1 |
$914B$ |
Cmd + Ctrl + F1 |
$A14B$ |
Cmd + Shift + Ctrl + F1 |
$B14B$ |
Cmd + Alt + F1 |
$C14B$ |
Cmd + Shift + Alt + F1 |
$D14B$ |
Cmd + Ctrl + Alt + F1 |
$E14B$ |
Cmd + Shift + Ctrl + Alt + F1 |
$F14B$ |