feat: Escape should close windows#1271
Conversation
|
@jschwxrz is attempting to deploy a commit to the General Action Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR extends the existing Key changes:
Two issues found: (1) Confidence Score: 4/5
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A([User presses Escape]) --> B{Target is editable?\ninput / textarea / contenteditable}
B -- Yes --> Z([Keypress ignored by shortcut system])
B -- No --> C{hasClosableView?\ncommandPalette OR settings OR\nbrowser OR diffViewer OR editor OR kanban}
C -- No --> Z
C -- Yes --> D[Resolve onCloseModal\nvia priority chain]
D --> E{showCommandPalette?}
E -- Yes --> F([handleCloseCommandPalette])
E -- No --> G{showSettings?}
G -- Yes --> H([handleCloseSettings])
G -- No --> I{showBrowser?}
I -- Yes --> J([handleCloseBrowser])
I -- No --> K{showDiffViewer?}
K -- Yes --> L([handleCloseDiffViewer])
K -- No --> M{showEditor?}
M -- Yes --> N([handleCloseEditor])
M -- No --> O{showKanban?}
O -- Yes --> P([handleCloseKanban])
O -- No --> Z
Last reviewed commit: 238e274 |
Additional Comments (1)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
|
fixed greptile issues, should be ready to merge |
|
Thanks @jschwxrz, |
summary:
changes: