KeyEventData (engine/view/observer)
@ckeditor/ckeditor5-engine/src/view/observer/keyobserver
The value of both events - ViewDocumentKeyDownEvent
and ViewDocumentKeyUpEvent
.
Filtering
Properties
-
Whether the Alt modifier was pressed.
-
Whether the Ctrl modifier was pressed.
-
The instance of the document.
-
readonly inherited
domEvent : KeyboardEvent
module:engine/view/observer/keyobserver~KeyEventData#domEvent
The DOM event.
-
readonly inherited
domTarget : HTMLElement
module:engine/view/observer/keyobserver~KeyEventData#domTarget
The DOM target.
-
The key code.
-
keystroke : number
module:engine/view/observer/keyobserver~KeyEventData#keystroke
Code of the whole keystroke. See
getCode
. -
Whether the Cmd modifier was pressed.
-
Whether the Shift modifier was pressed.
-
The tree view element representing the target.
-
Instance of the view controller.
Methods
-
inherited
preventDefault() → void
module:engine/view/observer/keyobserver~KeyEventData#preventDefault
-
inherited
stopPropagation() → void
module:engine/view/observer/keyobserver~KeyEventData#stopPropagation
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features. We appreciate your feedback to help us ensure its accuracy and completeness.