Attach KeymanWeb to HTML element (or IFrame).
- Element to which KeymanWeb will be attached.
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 until the control is enabled within KeymanWeb.
attachToControl() is called on an element with the
'kmw-disabled' class property, it will only
establish KeymanWeb's metadata for the control and initialize the control in a disabled state. A later call to
enableControl() may be used to initialize input handling for it. Otherwise, the control will be both attached
When the initialization property
attachType is set to
'auto', this function
is called automatically for every control on the page, even those dynamically added. However, when
is set to
attachToControl must be explicitly called for each control in need of KeymanWeb's