Class

KeyEventData (engine/view/observer)

@ckeditor/ckeditor5-engine/src/view/observer/keyobserver

class

The value of both events - event-keydown and event-keyup.

Filtering

Properties

  • altKey : Boolean

    Whether the Alt modifier was pressed.

  • ctrlKey : Boolean

    Whether the Ctrl modifier was pressed.

  • keyCode : Number

  • keystroke : Number

    readonly

    Code of the whole keystroke. See getCode.

  • metaKey : Boolean

    Whether the Cmd modifier was pressed.

  • shiftKey : Boolean

    Whether the Shift modifier was pressed.

  • target : Element

    readonly inherited

    The tree view element representing the target.

Methods

  • constructor( view, domEvent, [ additionalData ] )

    inherited

    Parameters

    view : View

    The instance of the view controller.

    domEvent : Event

    The DOM event.

    [ additionalData ] : Object

    Additional properties that the instance should contain.

  • preventDefault()

    inherited

    Prevents the native's event default action.

  • stopPropagation()

    inherited

    Stops native event propagation.