MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / isCombo

Function isCombo

frontend/src/hooks/useKeyboardEvents.ts:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 const eKey = keyCombination.caseSensitive ? e.key : e.key.toLocaleLowerCase();
15
16 const isCombo = () => {
17 if (ctrl && alt) return eKey === key;
18 if (ctrl) return eKey === key;
19 if (alt) return eKey === key;
20 return false;
21 };
22
23 if (isCombo()) {
24 e.preventDefault();

Callers 1

handleKeydownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected