Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 19.0Version 18.0 (current version)Version 17.0Version 16.0Version 15.0Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0

On this page

You are viewing an incomplete pre-release version of this documentation. Click here to open the current version, 18.0.

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.