focusRequester

Binds focusRequester to this component, so FocusRequester.requestFocus moves keyboard focus to it. The binding follows the modifier: it ends when the modifier leaves the chain or the component leaves the composition, and a different requester declared on a later recomposition takes the binding over from the previous one.

One component takes one requester: declaring two on the same chain binds the last one.

Return

this chain with the focus binding declared on it.

Parameters

focusRequester

the handle focus is requested through; hold it across recompositions with rememberFocusRequester.

See also