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

597 B

title
moveToElement

Summary

Move input focus to user specified element.

Syntax

keyman.moveToElement(Pelem);

Parameters

Pelem
Type: string|Element
Moves focus to the user-specified element, finding it by element id if necessary.

Return Value

undefined

Description

Touch-based input works through simulated input fields in KeymanWeb rather than the original controls of the page. As a result, this function should be used in place of the default Pelem.focus() method. It is used internally to allow OSK-based iteration through controls.