RemoteKeyHandler

class RemoteKeyHandler(val onText: (String) -> Unit, val onEnter: () -> Unit, val onBackspace: () -> Unit, val onKey: (RemoteKey) -> Unit, val onChord: (Char, ctrl: Boolean, alt: Boolean) -> Unit? = null)(source)

Callbacks from RemoteKeyboardSink. Typed text arrives through onText without line breaks, which come through onEnter. A null onChord leaves Ctrl/Alt+letter chords to the host instead of consuming them.

Constructors

Link copied to clipboard
constructor(onText: (String) -> Unit, onEnter: () -> Unit, onBackspace: () -> Unit, onKey: (RemoteKey) -> Unit, onChord: (Char, ctrl: Boolean, alt: Boolean) -> Unit? = null)

Properties

Link copied to clipboard
val onBackspace: () -> Unit
Link copied to clipboard
val onChord: (Char, ctrl: Boolean, alt: Boolean) -> Unit?
Link copied to clipboard
val onEnter: () -> Unit
Link copied to clipboard
val onKey: (RemoteKey) -> Unit
Link copied to clipboard
val onText: (String) -> Unit