DeleteEventData
interface
Information about a DOM event in context of the ViewDocument
.
It wraps the native event, which usually should not be used as the wrapper contains
additional data (like key code for keyboard events).
Properties
-
direction : 'forward' | 'backward'
module:typing/deleteobserver~DeleteEventData#direction
The direction in which the deletion should happen.
-
document : ViewDocument
readonlyinheritedmodule:typing/deleteobserver~DeleteEventData#document
The instance of the document.
-
domEvent : InputEvent
readonlyinheritedmodule:typing/deleteobserver~DeleteEventData#domEvent
The DOM event.
-
domTarget : HTMLElement
readonlyinheritedmodule:typing/deleteobserver~DeleteEventData#domTarget
The DOM target.
-
selectionToRemove : ViewSelection | ViewDocumentSelection | undefined
module:typing/deleteobserver~DeleteEventData#selectionToRemove
View selection which content should be removed. If not set, current selection should be used.
-
sequence : number
module:typing/deleteobserver~DeleteEventData#sequence
A number describing which subsequent delete event it is without the key being released. If it's 2 or more it means that the key was pressed and hold.
-
target : ViewElement
readonlyinheritedmodule:typing/deleteobserver~DeleteEventData#target
The tree view element representing the target.
-
unit : 'selection' | 'character' | 'codePoint' | 'word'
module:typing/deleteobserver~DeleteEventData#unit
The "amount" of content that should be deleted.
-
view : EditingView
readonlyinheritedmodule:typing/deleteobserver~DeleteEventData#view
Instance of the view controller.
Methods
-
preventDefault() → void
inheritedmodule:typing/deleteobserver~DeleteEventData#preventDefault
-
stopPropagation() → void
inheritedmodule:typing/deleteobserver~DeleteEventData#stopPropagation