onActivate
Runs one action for a primary pointer press or a focused Enter or Space press and consumes that event.
This modifier makes its logical component focusable through its keyboard handler. Keyboard activation is delivered after any inner focused handler and includes repeated press deliveries; it does not synthesize a pointer event. Compose this instead of a separate simple onPress handler when pointer and keyboard input represent the same action, so one nearest consuming handler owns that shared action consistently.
Return
this chain with one primary-press handler followed by one focused key-press handler.
Parameters
synchronous action invoked on the owning tree thread.
Throws
Conditionally installs the shared pointer and keyboard activation behavior from onActivate.
A false enabled value returns this exact modifier unchanged, retains no action, and adds no pointer or focus target node. Components do not expose their enabled state to modifiers, so callers pass the same state explicitly when disabled appearance and activation must agree.
Return
onActivate behavior when enabled, otherwise this exact modifier.
Parameters
whether this chain accepts activation input.
synchronous action invoked for enabled activation.