KeyEventData (engine/view/observer)
@ckeditor/ckeditor5-engine/src/view/observer/keyobserver
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
The key code.
-
keystroke : Number
readonly
Code of the whole keystroke. See
getCode
. -
shiftKey : Bolean
Whether the Shift modifier was pressed.
-
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.