spiegel-keyman/web/docs/engine/reference/core/index.md
Marc Durdin 1f82507730 docs(web): deprecate unused and obsolete API endpoints and docs cleanup
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
2026-08-12 16:07:22 +02:00

3.7 KiB


title: keyman - Core Module

The KeymanWeb core module is exposed to the developer as window.keyman.

activatingUI Function
Set an internal flag to notify KeymanWeb of change in UI activation state.
addEventListener Function
Adds an event listener for user-handling of keymanweb events.
addHotKey Function
Add hot key handler to array of document-level hotkeys triggered by key-up event.
addKeyboards Function
Adds keyboards to keymanweb.
addKeyboardsForLanguage Function
Adds default or all keyboards for a given language to keymanweb.
attachToControl Function
Attach KeymanWeb to HTML element (or IFrame).
build Property (deprecated)
The patch component for the current version of KeymanWeb.
BuildVisualKeyboard Function
Create a copy of the OSK for embedding in documentation or help page.
detachFromControl Function
Detach KeymanWeb from HTML element (or IFrame).
disableControl Function
Disables KeymanWeb input handling for the specified control.
enableControl Function
Enables KeymanWeb input handling for the specified control.
focusLastActiveElement Function
Restore the focus to the element active before input was moved to KeymanWeb.
getActiveKeyboard Function
Get the ID (internal name) of the currently active keyboard.
getActiveLanguage Function
Get the language code for the currently selected language.
getKeyboard Function
Get keyboard meta data for the selected keyboard and language.
getKeyboardForControl Function
Obtain the keyboard set for a specific control, if it exists.
getKeyboards Function
Get details of currently installed keyboards.
getLastActiveElement Function
Return the last element activated before input was moved to KeymanWeb.
getSavedKeyboard Function
Get the (internal) keyboard name and language code of the most recently active keyboard.
getUIState Function
Get the KeymanWeb user interface activation state.
helpURL Property (deprecated)
URL for keyboard help site.
init Function
Sets license key, selects user interface, and other KeymanWeb Options.
initialized Property
Keymanweb core module initialization state.
isChiral Function
Test if a given keyboard recognizes chiral modifier data, such as left-control vs right-control.
isCJK Function
Test if a given keyboard or keyboard stub (or the current keyboard) is for Chinese, Japanese, or Korean.
moveToElement Function
Move input focus to user specified element.
removeEventListener Function
Removes a user-defined event handler.
removeHotKey Function
Remove hotkey handler from document's list of hotkey handlers.
removeKeyboards Function
Removes keyboards (by ID) from KeymanWeb.
resetContext Function
Revert OSK to default layer and clear any deadkeys and modifiers
setActiveKeyboard Function
Change the currently active keyboard.
setKeyboardForControl Function
Associate control with independent keyboard settings initialized to a specific keyboard.
version Property (deprecated)
The major and minor components of the version of KeymanWeb.
versionInfo Property
Full version info for KeymanWeb.