Skip to content

Documentation / scene / IControllerKeypressEvent

Interface: IControllerKeypressEvent

Defined in: libs/scene/src/camera/base.ts:146

Key press event for camera controllers.

Triggered when a key is pressed and generates a character value (legacy usage).

Extends

Properties

type

type: "keypress"

Defined in: libs/scene/src/camera/base.ts:13

Event type identifier.

Inherited from

IControllerKeyboardEvent.type


preventDefault?

optional preventDefault?: () => void

Defined in: libs/scene/src/camera/base.ts:18

Optional method to cancel the default event behavior. May be provided by the event source.

Returns

void

Inherited from

IControllerKeyboardEvent.preventDefault


ctrlKey

readonly ctrlKey: boolean

Defined in: libs/scene/src/camera/base.ts:30

Whether the Control key is pressed.

Inherited from

IControllerKeyboardEvent.ctrlKey


metaKey

readonly metaKey: boolean

Defined in: libs/scene/src/camera/base.ts:32

Whether the Meta (Command on macOS) key is pressed.

Inherited from

IControllerKeyboardEvent.metaKey


shiftKey

readonly shiftKey: boolean

Defined in: libs/scene/src/camera/base.ts:34

Whether the Shift key is pressed.

Inherited from

IControllerKeyboardEvent.shiftKey


altKey

readonly altKey: boolean

Defined in: libs/scene/src/camera/base.ts:36

Whether the Alt/Option key is pressed.

Inherited from

IControllerKeyboardEvent.altKey


code

readonly code: string

Defined in: libs/scene/src/camera/base.ts:116

key code

Inherited from

IControllerKeyboardEvent.code


key

readonly key: string

Defined in: libs/scene/src/camera/base.ts:118

Character value

Inherited from

IControllerKeyboardEvent.key

Released under the MIT License.