Binds keycodes to actionnames in an editor. This aggregates an internal handler and extends the implementation of mxKeyHandler.escape to not only cancel the editing, but also hide the properties dialog and fire an <mxEditor.escape> event via editor. An instance of this class is created by mxEditor and stored in mxEditor.keyHandler.
Constructs a new default key handler for the mxEditor.graph in the given mxEditor. (The editor may be null if a prototypical instance for a {@link mxDefaultKeyHandlerCodec} is created.)
Reference to the enclosing mxEditor.
Holds the mxKeyHandler for key event handling.
Binds the specified keycode to the given action in editor. The optional control flag specifies if the control key must be pressed to trigger the action.
Integer that specifies the keycode.
Name of the action to execute in editor.
Optional boolean that specifies if control must be pressed. Default is false.
Generated using TypeDoc
Binds keycodes to actionnames in an editor. This aggregates an internal handler and extends the implementation of mxKeyHandler.escape to not only cancel the editing, but also hide the properties dialog and fire an <mxEditor.escape> event via editor. An instance of this class is created by mxEditor and stored in mxEditor.keyHandler.
Bind the delete key to the delete action in an existing editor.
This class uses the {@link mxDefaultKeyHandlerCodec} to read configuration data into an existing instance. See {@link mxDefaultKeyHandlerCodec} for a description of the configuration format.
See mxKeyHandler. An mxEvent.ESCAPE event is fired via the editor if the escape key is pressed.