KeyEvent

data class KeyEvent(var type: KeyEvent.Type = Type.UP, var id: Int = 0, var key: Key = Key.UP, var keyCode: Int = 0, var character: Char = '\u0000', var shift: Boolean = false, var ctrl: Boolean = false, var alt: Boolean = false, var meta: Boolean = false, var str: String? = null) : Event, TEvent<KeyEvent>

Constructors

Link copied to clipboard
constructor(type: KeyEvent.Type = Type.UP, id: Int = 0, key: Key = Key.UP, keyCode: Int = 0, character: Char = '\u0000', shift: Boolean = false, ctrl: Boolean = false, alt: Boolean = false, meta: Boolean = false, str: String? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var id: Int
Link copied to clipboard
var key: Key
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

On MacOS CMD, on Linux and Windows CTRL

Link copied to clipboard
Link copied to clipboard
var str: String?
Link copied to clipboard
var target: Any?
Link copied to clipboard
open override var type: KeyEvent.Type
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun copyFrom(other: KeyEvent)
Link copied to clipboard
fun preventDefault(reason: Any? = null)
Link copied to clipboard
fun Event.preventDefault(reason: Any? = null): Nothing
Link copied to clipboard
fun stopPropagation(reason: Any? = null)