Hotkey store and HOTKEY statement
store( &hotkey ) "%tsHotKey%" 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.
Example
store( &hotkey ) "^+A" c Ctrl+Shift+A store( &hotkey ) "[Alt Shift K_PAUSE]" c Alt+Shift+Pause
Versions
The virtual key hotkey functionality was introduced in Keyman 3.1.