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

Method handleKeyDown

js/settings.js:59–68  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

57 }
58
59 handleKeyDown(event) {
60 if (event.keyCode === KEYS.enter) {
61 return true; // mark as handled - user might expect doing save by enter
62 }
63 if (event.keyCode === KEYS.esc) {
64 this.startClose();
65 return true;
66 }
67 return false;
68 }
69
70 open() {
71 this.wrapper.removeAttribute('hidden');

Callers

nothing calls this directly

Calls 1

startCloseMethod · 0.95

Tested by

no test coverage detected