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

650 B

title
keyman.controlfocused Event

Summary

Called when an input element receives focus.

Syntax

keyman.addEventListener('controlfocused', function(eventProperties) {
  ...
});

Parameters

eventProperties
Type: object
An object with the following properties:
  • target - the element gaining focus
  • event - the currently active control.

Return Value

boolean
true if the event should continue processing, false if it should not. Your event handler should return true aside from exceptional circumstances.

Description

This event is used by various KeymanWeb UI elements.