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 : KeyboardEventmodule:engine/view/observer/keyobserver~KeyEventData#domEventThe DOM event.
-
readonly inherited
domTarget : HTMLElementmodule:engine/view/observer/keyobserver~KeyEventData#domTargetThe DOM target.
-
The key code.
-
keystroke : numbermodule:engine/view/observer/keyobserver~KeyEventData#keystrokeCode 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() → voidmodule:engine/view/observer/keyobserver~KeyEventData#preventDefault -
inherited
stopPropagation() → voidmodule: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.