&Hotkey store and HOTKEY statement
store( &HotKey ) "tsHotKey"
The HOTKEY statement specifies the hotkey that Keyman will use to turn the keyboard on. When this hotkey is pressed, any active keyboard will be turned off and the new keyboard will be turned on. The hotkey must be enclosed in quotes.
The hotkey can be any letter key, with any combination of the Shift, Control and Alt keys also pressed. The specification of the HOTKEY statement follows the Microsoft standard for hotkeys in Windows. Inside a double-quoted string, you can combine the letter key with special characters to identify the shift state:
|To combine with||Precede the letter by|
|Shift||+ (plus sign)|
|Ctrl||^ (caret sign)|
|Alt||% (percent sign)|
The hotkey can also be in Virtual Key format, so that you can use any key on the keyboard. This statement is optional.
store( &HotKey ) "^+A" c Ctrl+Shift+A store( &HotKey ) "[Alt Shift K_PAUSE]" c Alt+Shift+Pause
The virtual key functionality was introduced in Keyman 3.1.