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

596 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.