MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / onKeydownCallback

Method onKeydownCallback

static/panes/output.ts:91–96  ·  view source on GitHub ↗
(e: JQuery.KeyDownEvent)

Source from the content-addressed store, hash-verified

89 }
90
91 private onKeydownCallback(e: JQuery.KeyDownEvent) {
92 if (this.isOutputCurrentSelection && e.ctrlKey && e.key === 'a') {
93 e.preventDefault();
94 this.selectAll();
95 }
96 }
97
98 private selectAll() {
99 const range = document.createRange();

Callers 1

registerCallbacksMethod · 0.95

Calls 1

selectAllMethod · 0.95

Tested by

no test coverage detected