MCPcopy
hub / github.com/Kong/insomnia / addModifierKeys

Function addModifierKeys

packages/insomnia-data/common-src/hotkeys.ts:313–319  ·  view source on GitHub ↗
(keys: (keyof Omit<KeyCombination, 'keyCode'>)[])

Source from the content-addressed store, hash-verified

311 const chars: string[] = [];
312
313 const addModifierKeys = (keys: (keyof Omit<KeyCombination, 'keyCode'>)[]) => {
314 keys.forEach(key => {
315 if (keyComb[key]) {
316 chars.push(displayModifierKey(key));
317 }
318 });
319 };
320
321 if (isMac) {
322 // Note: on Mac the canonical order is Control, Option (i.e. Alt), Shift, Command (i.e. Meta)

Callers 1

Calls 3

displayModifierKeyFunction · 0.85
forEachMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected