Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Properties

cancelable

cancelable: boolean

IF this event's default action is cancelable. See respective engine event for its definition of default action.

nativeignore

code

code: string

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.

defaultPrevented

defaultPrevented: boolean

If this event's default action has been canceled/prevented by a call to preventDefault()

nativeignore

immediatePropagationStopped

immediatePropagationStopped: boolean

True if stopImmediatePropagation() was called on this event.

nativeignore

isComposing

isComposing: boolean

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

isTrusted

isTrusted: boolean

If this event runs in a "trusted" context, i.e. the event callback is executed during a user-generated event such as "click" or "pointerdown".

nativeignore

key

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.

keyCode

keyCode: number

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.

deprecated

This feature has been removed from the web standards. Use the code or key property instead.

int

location

location: number

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

int

modifiers

Contains the state of keyboard modifier keys.

objectType

The type of engine event object this JSON structure represents.

default

KEYBOARD_ENGINE_EVENT

propagationStopped

propagationStopped: boolean

True if stopPropagation() was called on this event.

nativeignore

readerDocumentEventState

readerDocumentEventState: ReaderDocumentEventState

Describes how the reader document acted on the event.

readerViewName

readerViewName: string

The name of the ReaderView this event is related to.

nativeignore

repeated

repeated: boolean

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

target

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

type

The type of event.

userGenerated

userGenerated: boolean

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

Note that if this value is true, the engine event listener might still be called in an untrusted execution context due to proxying through iframes, etc. Use isTrusted() to verify if the current execution context is trusted.

willEmitDomEvent

willEmitDomEvent: boolean

If true, a native DOM event with the same type as this engine event will also be fired in your app.

If you are also listening on the corresponding DOM event, use this value to ensure that you are not handling the same event twice.

For example, when performing a "click" inside an EPUB reader document, the DOM "click" event will not be visible to your app because the document is rendered in an iframe. However, a click on the edge of an EPUB reader document will generate a normal DOM "click" event AND also a Colibrio "click" engine event.

nativeignore

Generated using TypeDoc