class SKryptonKeyEvent : SKryptonEvent
An event which indicates that a key action occurred.
SKryptonKeyEvent(type: KeyEventType, key: Key, modifiers: KeyboardModifiers = KeyboardModifiers.NoModifier, autoRepeat: Boolean = false, count: Int = 1)
This constructor takes a Key and other parameters and constructs a SKryptonKeyEvent. SKryptonKeyEvent(type: KeyEventType, char: Char, modifiers: KeyboardModifiers = KeyboardModifiers.NoModifier, autoRepeat: Boolean = false, count: Int = 1)
This constructor takes a Char and other parameters and constructs a SKryptonKeyEvent. SKryptonKeyEvent(type: KeyEventType, char: String, modifiers: KeyboardModifiers = KeyboardModifiers.NoModifier, autoRepeat: Boolean = false, count: Int = 1)
Same as Char constructor except that it accepts a single character String. |
val character: String
Character string that was generated when this event occurred. |
|
val isAutoRepeat: Boolean
Whether or not the event was auto repeating (Long press of the key). |
|
val key: Key
The key that was involved in this event. |
open val handle: CPointer
Native pointer backing this object. |
open fun close(): Unit
Disposes this event. |