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 : Bolean

    Whether the Alt modifier was pressed.

  • ctrlKey : Bolean

    Whether the Ctrl or Cmd modifier was pressed.

  • keyCode : Number

  • keystroke : Number

    readonly

    Code of the whole keystroke. See getCode.

  • shiftKey : Bolean

    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.