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
3.7 KiB
3.7 KiB
title: keyman - Core Module
The KeymanWeb core module is exposed to the developer as window.keyman.
activatingUIFunction- Set an internal flag to notify KeymanWeb of change in UI activation state.
addEventListenerFunction- Adds an event listener for user-handling of keymanweb events.
addHotKeyFunction- Add hot key handler to array of document-level hotkeys triggered by key-up event.
addKeyboardsFunction- Adds keyboards to keymanweb.
addKeyboardsForLanguageFunction- Adds default or all keyboards for a given language to keymanweb.
attachToControlFunction- Attach KeymanWeb to HTML element (or IFrame).
buildProperty (deprecated)- The patch component for the current version of KeymanWeb.
-
BuildVisualKeyboardFunction - Create a copy of the OSK for embedding in documentation or help page.
detachFromControlFunction- Detach KeymanWeb from HTML element (or IFrame).
disableControlFunction- Disables KeymanWeb input handling for the specified control.
enableControlFunction- Enables KeymanWeb input handling for the specified control.
focusLastActiveElementFunction- Restore the focus to the element active before input was moved to KeymanWeb.
getActiveKeyboardFunction- Get the ID (internal name) of the currently active keyboard.
getActiveLanguageFunction- Get the language code for the currently selected language.
getKeyboardFunction- Get keyboard meta data for the selected keyboard and language.
getKeyboardForControlFunction- Obtain the keyboard set for a specific control, if it exists.
getKeyboardsFunction- Get details of currently installed keyboards.
getLastActiveElementFunction- Return the last element activated before input was moved to KeymanWeb.
getSavedKeyboardFunction- Get the (internal) keyboard name and language code of the most recently active keyboard.
getUIStateFunction- Get the KeymanWeb user interface activation state.
helpURLProperty (deprecated)- URL for keyboard help site.
initFunction- Sets license key, selects user interface, and other KeymanWeb Options.
initializedProperty- Keymanweb core module initialization state.
isChiralFunction- Test if a given keyboard recognizes chiral modifier data, such as left-control vs right-control.
isCJKFunction- Test if a given keyboard or keyboard stub (or the current keyboard) is for Chinese, Japanese, or Korean.
moveToElementFunction- Move input focus to user specified element.
removeEventListenerFunction- Removes a user-defined event handler.
removeHotKeyFunction- Remove hotkey handler from document's list of hotkey handlers.
removeKeyboardsFunction- Removes keyboards (by ID) from KeymanWeb.
resetContextFunction- Revert OSK to default layer and clear any deadkeys and modifiers
setActiveKeyboardFunction- Change the currently active keyboard.
setKeyboardForControlFunction- Associate control with independent keyboard settings initialized to a specific keyboard.
versionProperty (deprecated)- The major and minor components of the version of KeymanWeb.
versionInfoProperty- Full version info for KeymanWeb.