KeyboardEngineEventData

class KeyboardEngineEventData(val objectType: EngineEventDataObjectType = EngineEventDataObjectType.KEYBOARD_ENGINE_EVENT, val type: EngineEventDataType, val code: String, val isComposing: Boolean, val key: String, val keyCode: Int, val location: Int, val modifiers: KeyboardModifierStates, val readerDocumentEventState: ReaderDocumentEventState, val repeated: Boolean, val target: EngineEventTargetData?, val userGenerated: Boolean) : ReaderViewEngineEventData

The serializable version of IKeyboardEngineEvent, used for "keydown" and "keyup" events.

Constructors

Link copied to clipboard
fun KeyboardEngineEventData(objectType: EngineEventDataObjectType = EngineEventDataObjectType.KEYBOARD_ENGINE_EVENT, type: EngineEventDataType, code: String, isComposing: Boolean, key: String, keyCode: Int, location: Int, modifiers: KeyboardModifierStates, readerDocumentEventState: ReaderDocumentEventState, repeated: Boolean, target: EngineEventTargetData?, userGenerated: Boolean)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

Represents a physical key on the keyboard (as opposed to the character generated by pressing the key). In other words, this property returns a value that isn't altered by keyboard layout or the state of the modifier keys.

Link copied to clipboard

Indicates if the event was fired within a composition session, i.e. between "compositionstart" and "compositionend"

Link copied to clipboard
val key: String

Returns the value of the key pressed by the user, taking into consideration the state of modifier keys such as Shift as well as the keyboard locale and layout.

Link copied to clipboard

Represents a system and implementation dependent numerical code identifying the unmodified value of the pressed key. This is usually the decimal ASCII (RFC 20) or Windows 1252 code corresponding to the key. If the key can't be identified, this value is 0.

Link copied to clipboard

A number representing the location of the key on the keyboard or other input device.

Link copied to clipboard

Contains the state of keyboard modifier keys.

Link copied to clipboard

The type of engine event object this JSON structure represents.

Link copied to clipboard

Describes how the reader document acted on the event.

Link copied to clipboard

Indicates if the given key is being held down such that it is automatically repeating.

Link copied to clipboard

Contains additional information about the original event target, such as the targeted node in the reader document.

Link copied to clipboard

The type of event.

Link copied to clipboard

If the event was emitted due to a user generated event.