Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 6.0

On this page

&Hotkey store and HOTKEY statement

Description

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 withPrecede 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.

Examples

store( &HotKey ) "^+A"                   c Ctrl+Shift+A
store( &HotKey ) "[Alt Shift K_PAUSE]"   c Alt+Shift+Pause

History

The virtual key functionality was introduced in Keyman 3.1.