onKeyRelease

fun Modifier.onKeyRelease(propagation: InputResult, filter: KeyboardInputFilter = KeyboardInputFilter(), action: UiSession.(KeyboardEvent.Release) -> Unit): Modifier(source)

Subscribes to typed keyboard notifications with a fixed immediate dispatch result. Only events matching filter invoke action or cross a remote connection; other events continue propagation. The handler runs on the screen owner thread, on the hosting server or proxy when the screen is remote. propagation is decided locally without waiting for that handler; dynamic result callbacks use the other overload.


Adds a focused key-release callback.

Return

a modifier with the active callback appended nearest the component.

Parameters

callback

focused typed callback deciding propagation.