processKeyboardEvents

open override fun processKeyboardEvents(eventType: KeyboardEventType, handler: (event: KeyboardEvent, phase: UIEventPhase) -> Unit): Subscription

Adds the given handler for KeyboardEvents. Differs from a handleKeyboardEvents in a way that its handler doesn't return an UIEventResponse, but Processed is returned implicitly to the framework.

Use processKeyboardEvents if you always handle the event (you never skip/drop events). This means that processKeyboardEvents can be used if you find yourself always returning Processed form your event listeners.

Sources

(source)
Link copied to clipboard