27 lines
850 B
Kotlin
27 lines
850 B
Kotlin
package net.mezimmah.wkt9.keypad
|
|
|
|
import net.mezimmah.wkt9.inputmode.WKT9InputMode
|
|
import java.lang.StringBuilder
|
|
|
|
data class KeyEventResult(
|
|
val consumed: Boolean = true,
|
|
val finishComposing: Boolean = false,
|
|
val startComposing: Boolean = false,
|
|
val trackCommits: Boolean = false,
|
|
val codeWord: StringBuilder? = null,
|
|
val candidates: List<String>? = null,
|
|
val commit: String? = null,
|
|
val timeout: Int? = null,
|
|
val deleteBeforeCursor: Int = 0,
|
|
val deleteAfterCursor: Int = 0,
|
|
val goHome: Boolean = false,
|
|
val left: Boolean = false,
|
|
val right: Boolean = false,
|
|
val record: Boolean = false,
|
|
val transcribe: Boolean = false,
|
|
val updateInputStatus: Boolean = false,
|
|
val updateWordStatus: Boolean = false,
|
|
val focus: Boolean = false,
|
|
val switchInputMode: WKT9InputMode? = null
|
|
)
|