 james.maesandClaude Opus 4.7
|
5d57d7b5a4
|
feat(01-04): build hand-rolled ShortcutRecorder + CollisionDetector
- ShortcutRecorderHostView: testable NSView with process(event:) drop-in;
rejects modifier-only + shift-only keystrokes, aborts on Escape, records
valid (keyCode + non-shift-only modifiers) per UI-SPEC Surface 2
- ShortcutRecorderView: NSViewRepresentable SwiftUI glue with @Binding
shortcut + errorMessage, @MainActor-isolated Delegate protocol
- KeyCapView / KeyCapRowView: key-cap chip rendering ([⌘]+[⇧]+[J])
- CollisionDetector: Cmd+Shift+J → Chrome/Slack/VS Code warning,
Option+Space → Alfred/Raycast warning, uncommon combos pass through
- Tests: 7 passing (modifier-only rejected, shift-only rejected, escape
aborts, valid capture, cmdShiftJ collision, optionSpace collision,
uncommon combo no collision)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-22 13:48:31 -05:00 |
|