KeyEventData (engine/view/observer)
@ckeditor/ckeditor5-engine/src/view/observer/keyobserver
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
The key code.
-
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.
-
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.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.