spiegel-keyman/web/docs/engine/reference/core/resetContext.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

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.