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#directionThe direction in which the deletion should happen.
document : ViewDocumentreadonlyinheritedmodule:typing/deleteobserver~DeleteEventData#documentThe instance of the document.
domEvent : InputEventreadonlyinheritedmodule:typing/deleteobserver~DeleteEventData#domEventThe DOM event.
domTarget : HTMLElementreadonlyinheritedmodule:typing/deleteobserver~DeleteEventData#domTargetThe DOM target.
selectionToRemove : ViewSelection | ViewDocumentSelection | undefinedmodule:typing/deleteobserver~DeleteEventData#selectionToRemoveView selection which content should be removed. If not set, current selection should be used.
sequence : numbermodule:typing/deleteobserver~DeleteEventData#sequenceA 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 : ViewElementreadonlyinheritedmodule:typing/deleteobserver~DeleteEventData#targetThe tree view element representing the target.
unit : 'selection' | 'character' | 'codePoint' | 'word'module:typing/deleteobserver~DeleteEventData#unitThe "amount" of content that should be deleted.
view : EditingViewreadonlyinheritedmodule:typing/deleteobserver~DeleteEventData#viewInstance of the view controller.
Methods
preventDefault() → voidinheritedmodule:typing/deleteobserver~DeleteEventData#preventDefaultstopPropagation() → voidinheritedmodule:typing/deleteobserver~DeleteEventData#stopPropagation