spiegel-keyman/web/docs/engine/reference/core/detachFromControl.md
Marc Durdin 6c145cb775 refactor(web): move web engine help to app repo
Note: build.sh updated to make sure that test:help build action:target
doesn't also call test.sh by adding `:_all` meta-target.

Note: CI will need a new help-keyman-com.sh build step to deploy web
engine help.

Fixes: #12347
2024-10-31 11:00:06 +07:00

711 B

title
detachFromControl

Summary

Detach KeymanWeb from HTML element (or IFrame).

Syntax

keyman.detachFromControl(Pelem);

Parameters

Pelem
Type: Element
Element for KeymanWeb to detach from, no longer handling input.

Return Value

undefined

Description

This function entirely detaches KeymanWeb from the specified control, removing all specialized input handling and data tracking for the element. As such, detaching effectively 'resets' the control's state entirely, save for any previously-input text.

For more information about attachment, see keyman.attachToControl().

Contrast with keyman.disableControl().