Key

data class Key(val code: KeyCode, val modifiers: Set<ModifierKey>)

A combination of keyboard keys.

Author

Mark van Gulik

Richard Arriaga

Constructors

Link copied to clipboard
fun Key(code: KeyCode, modifiers: Set<ModifierKey>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: KeyCode

The KeyCode of the Key combination.

Link copied to clipboard
val keyAsString: String
Link copied to clipboard
val keyStroke: KeyStroke

The KeyStroke used to trigger this Key.

Link copied to clipboard
val modifiers: Set<ModifierKey>

The ModifierKeys of this Key combination.