MCPcopy Create free account
hub / github.com/devforth/painterro / handleKeyDown

Method handleKeyDown

js/inserter.js:245–254  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

243 }
244
245 handleKeyDown(evt) {
246 if (this.waitChoice && evt.keyCode === KEYS.esc) {
247 this.cancelChoosing();
248 return true;
249 }
250 if (this.waitChoice && event.keyCode === KEYS.enter) {
251 return true; // mark as handled - user might expect doing save by enter
252 }
253 return false;
254 }
255
256 startLoading() {
257 this.loading = true;

Callers

nothing calls this directly

Calls 1

cancelChoosingMethod · 0.95

Tested by

no test coverage detected