Interface ViewEventTypes

Event types that can be received from a View.

Hierarchy

  • ViewEventTypes

Index

Properties

Properties

caretescape

caretescape: DefaultPreventableEvent<View> & object

Fired when the user presses a key that would cause the caret to leave from the top or bottom of the document. This event can be used to integrate views more tightly with other editing components: focus and caret position can be transferred seamlessly from the view to another component that comes before or after the view. The escapeEdge property of this event contains boolean properties block, line, start, and end that specify how and where the caret would escape. After the event fires, the view will provide error feedback for the escape attempt unless a listener calls preventDefault.

This API is still under development and is subject to change. Copyright © Math I Can Do Solutions Incorporated and/or its licensors.