refactor(cli): keyboard handling and AskUserDialog (#17414)

This commit is contained in:
Jacob Richman
2026-01-27 14:26:00 -08:00
committed by GitHub
parent 3e8e1e86f3
commit a2890e0a04
46 changed files with 1220 additions and 385 deletions
@@ -75,10 +75,12 @@ export const ToolConfirmationMessage: React.FC<
useKeypress(
(key) => {
if (!isFocused) return;
if (!isFocused) return false;
if (key.name === 'escape' || (key.ctrl && key.name === 'c')) {
handleConfirm(ToolConfirmationOutcome.Cancel);
return true;
}
return false;
},
{ isActive: isFocused },
);