MCPcopy Index your code
hub / github.com/CapSoftware/Cap / modifiersForHotkey

Function modifiersForHotkey

apps/desktop/scripts/desktop-memory-soak.js:308–317  ·  view source on GitHub ↗
(hotkey)

Source from the content-addressed store, hash-verified

306}
307
308function modifiersForHotkey(hotkey) {
309 return [
310 hotkey.meta ? "command down" : null,
311 hotkey.ctrl ? "control down" : null,
312 hotkey.alt ? "option down" : null,
313 hotkey.shift ? "shift down" : null,
314 ]
315 .filter(Boolean)
316 .join(", ");
317}
318
319function pressHotkey(hotkey) {
320 const keyCode = APPLE_KEY_CODES[hotkey.code];

Callers 1

pressHotkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected