onFocusChanged

Adds a callback for distinct retained focus transitions and makes the logical component focusable.

Detach delivers FocusEvent.Lost before retained ownership is suspended; permanent disposal releases callback.

Return

a modifier with the active callback appended nearest the component.

Parameters

callback

synchronous distinct transition observer.