mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-15 21:29:23 +00:00
Deprecate the following obsolete functions and properties: * `keyman.helpURL` * `keyman.util.rgba` * `keyman.util.toFloat` * `keyman.util.toNumber` * `keyman.util.toNzString` Use correct language for code blocks in Keyman Engine for Web documentation. Test-bot: skip
678 B
678 B
| title |
|---|
| addHotKey |
Summary
Add hot key handler to array of document-level hotkeys triggered by key-up event.
Syntax
keyman.addHotKey(keyCode, shiftState, handler);
Parameters
keyCode- Type:
number - The base key of the hotkey
shiftState- Type:
number shiftStateis a bitwise combination of SHIFT (0x10), CTRL (0x20) and ALT (0x40).handler- Type:
function - The function to be called when the hotkey is triggered. It should not expect any parameters.
Return Value
undefined
Description
Used to support custom hotkeys within a web document. Only one handler function may exist per hotkey combination.