MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / _keyEvent

Method _keyEvent

src/dd-resizable-handle.ts:134–139  ·  view source on GitHub ↗

@internal call when keys are being pressed - use Esc to cancel

(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

132
133 /** @internal call when keys are being pressed - use Esc to cancel */
134 protected _keyEvent(e: KeyboardEvent): void {
135 if (e.key === 'Escape') {
136 this.host.gridstackNode?.grid?.engine.restoreInitial();
137 this._mouseUp(this.mouseDownEvent);
138 }
139 }
140
141
142

Callers

nothing calls this directly

Calls 2

_mouseUpMethod · 0.95
restoreInitialMethod · 0.80

Tested by

no test coverage detected