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

712 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().