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
module:engine/view/observer/keyobserver~KeyEventData#altKey
Whether the Alt modifier was pressed.
-
ctrlKey : Boolean
module:engine/view/observer/keyobserver~KeyEventData#ctrlKey
Whether the Ctrl modifier was pressed.
-
keyCode : Number
module:engine/view/observer/keyobserver~KeyEventData#keyCode
The key code.
-
keystroke : Number
module:engine/view/observer/keyobserver~KeyEventData#keystroke
readonly
Code of the whole keystroke. See
getCode
. -
metaKey : Boolean
module:engine/view/observer/keyobserver~KeyEventData#metaKey
Whether the Cmd modifier was pressed.
-
shiftKey : Boolean
module:engine/view/observer/keyobserver~KeyEventData#shiftKey
Whether the Shift modifier was pressed.
-
The tree view element representing the target.
Methods
-
constructor( view, domEvent, [ additionalData ] )
module:engine/view/observer/keyobserver~KeyEventData#constructor
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()
module:engine/view/observer/keyobserver~KeyEventData#preventDefault
inherited
Prevents the native's event default action.
-
stopPropagation()
module:engine/view/observer/keyobserver~KeyEventData#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.