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
597 B
597 B
| title |
|---|
| resetContext |
Summary
Reverts the OSK to the default layer, clears any processing caches and modifier states, and clears deadkeys and prediction-processing states on the active element (if it exists)
Syntax
keyman.resetContext();
Parameters
None.
Return Value
undefined
Description
This function can be used by a site to reset KeymanWeb's internal context state. This could be used after direct manipulation of a text store by the site -- for example, a paste command -- so that users are not presented with unexpected predictions or deadkeys.