MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / modifiersOf

Function modifiersOf

graph-ui/src/help/HelpOverlay.tsx:50–58  ·  view source on GitHub ↗

Die gedrueckten Modifikatoren, so wie sie auf einer Tastatur heissen.

(reading: KeyProbeReading)

Source from the content-addressed store, hash-verified

48
49/** Die gedrueckten Modifikatoren, so wie sie auf einer Tastatur heissen. */
50function modifiersOf(reading: KeyProbeReading): string {
51 const names = [
52 reading.altKey ? 'alt (option)' : '',
53 reading.ctrlKey ? 'ctrl' : '',
54 reading.metaKey ? 'meta (command)' : '',
55 reading.shiftKey ? 'shift' : '',
56 ].filter((name) => name.length > 0);
57 return names.length === 0 ? help.keyProbeNoModifier : names.join(' + ');
58}
59
60/**
61 * Der Tastentest: was ankam, in sieben Zeilen.

Callers 1

KeyProbeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected