MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / resetKeys

Function resetKeys

src/handlers/quickTools.js:646–656  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644}
645
646function resetKeys() {
647 state.shift = false;
648 events.shift.forEach((cb) => cb(false));
649 state.alt = false;
650 events.alt.forEach((cb) => cb(false));
651 state.ctrl = false;
652 events.ctrl.forEach((cb) => cb(false));
653 state.meta = false;
654 events.meta.forEach((cb) => cb(false));
655 input?.focus?.();
656}
657
658/**
659 * Gets the current state of the modifier keys

Callers 2

quickTools.jsFile · 0.85
actionsFunction · 0.85

Calls 1

focusMethod · 0.80

Tested by

no test coverage detected