feat: esc to cancel

This commit is contained in:
cpacker
2025-10-25 14:04:04 -07:00
parent cd0b836c62
commit 99f81d8da1

View File

@@ -255,6 +255,13 @@ export function ApprovalDialog({
return;
}
if (key.escape) {
// Shortcut: ESC immediately opens the deny reason prompt
setSelectedOption(options.length - 1);
setIsEnteringReason(true);
return;
}
// Navigate with arrow keys
if (key.upArrow) {
setSelectedOption((prev) => (prev > 0 ? prev - 1 : options.length - 1));