fix(ui): avoid treating copy chords as note shortcut#375
Conversation
Greptile SummaryThis PR fixes a long-standing issue where
Confidence Score: 5/5Safe to merge — the change tightens an existing keyboard shortcut check without altering any other behavior. The old inline check matched any No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[KeyEvent received] --> B{isCreateReviewNoteKey?}
B --> C{name === 'c' OR\nsequence === 'c'}
C -- No --> D[No match — fall through]
C -- Yes --> E{!ctrl AND\n!meta AND\n!option AND\n!shift}
E -- No\ncopy chord / modified key --> D
E -- Yes\nunmodified 'c' --> F[runAndCloseMenu / startUserNote]
Reviews (1): Last reviewed commit: "fix(ui): avoid treating copy chords as n..." | Re-trigger Greptile |
Summary
ccevents as note creationTesting
bun run typecheckbun test src/ui/lib/ui-lib.test.ts src/ui/AppHost.interactions.test.tsx --test-name-pattern "review note shortcut|draft note focus"This PR description was generated by Pi using OpenAI GPT-5