(e: KeyboardEvent)
| 25 | }; |
| 26 | |
| 27 | function captureKeyCombo(e: KeyboardEvent): string { |
| 28 | e.preventDefault(); |
| 29 | const parts: string[] = []; |
| 30 | if (e.ctrlKey || e.metaKey) parts.push("Ctrl"); |
| 31 | if (e.altKey) parts.push("Alt"); |
| 32 | if (e.shiftKey) parts.push("Shift"); |
| 33 | if (e.key && !["Control", "Alt", "Shift", "Meta"].includes(e.key)) { |
| 34 | parts.push(e.key === " " ? "Space" : e.key); |
| 35 | } |
| 36 | return parts.join("+"); |
| 37 | } |
| 38 | |
| 39 | function ShortcutRow({ |
| 40 | id, |
no test coverage detected