Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 13.0 (current release)Version 12.0Version 11.0Version 10.0Version 2.0 (home page)Version 1.0 (home page)

On this page

enableControl

Summary

Enables KeymanWeb input handling for the specified control.

Syntax

keyman.enableControl(Pelem)

Parameters

Pelem
Type: Element
Element to become KeymanWeb-enabled.

Return Value

undefined

Description

There are two steps involved in enabling input handling with KeymanWeb for any given control: attachment and enablement. The attachment process validates a control's compatibility with KeymanWeb and establishes special metadata within the system. This data is released if the control is ever detached. The control will not receive special input handling unless the control is enabled within KeymanWeb.

This function is used to explicitly enable KeymanWeb input handling for a previously-attached control, removing the class 'kmw-disabled' property from the element as necessary. It will not, however, attach KeymanWeb to the control.

If 'kmw-disabled' is removed from the control via other means, enableControl() will be called upon it automatically and non-recursively.

If called on an element in an unattached state, the 'kmw-disabled' tag will be removed from the element.

See also keyman.attachToControl(), keyman.disableControl()