Package-level declarations

Types

Link copied to clipboard
enum class RemoteKey : Enum<RemoteKey>

Keys a soft keyboard lacks that a remote session sends itself; each feature maps them to its own wire form.

Link copied to clipboard
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)

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.

Functions

Link copied to clipboard
fun RemoteKeyboardSink(focusRequester: FocusRequester, handler: RemoteKeyHandler, modifier: Modifier = Modifier)

Zero-size field that holds keyboard focus so both hardware keys and the soft keyboard reach a remote session.