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

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