API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classKeyEvent

@codexo/exojs / input / stable

Envelope dispatched by FocusManager to the focused RenderNode for keyboard input. `channel` is the input channel of the key — compare it with the `Keyboard` constants (e.g. `event.channel === Keyboard.Enter`). A handler may call KeyEvent.preventDefault to suppress the FocusManager's built-in handling for this key (currently `Tab` focus traversal), letting the focused widget consume the key itself.

4
props
1
methods
0
events
Import
import { KeyEvent } from '@codexo/exojs'

Envelope dispatched by FocusManager to the focused RenderNode for keyboard input. `channel` is the input channel of the key — compare it with the `Keyboard` constants (e.g. `event.channel === Keyboard.Enter`).

A handler may call KeyEvent.preventDefault to suppress the FocusManager's built-in handling for this key (currently `Tab` focus traversal), letting the focused widget consume the key itself.

Constructors 1
new(type: KeyEventType, channel: number, target: RenderNode): KeyEvent
Methods 1
preventDefault(): void
Properties 4
channel: number
target: RenderNode
type: KeyEventType
defaultPrevented: boolean
Source