fix: add consistent CTRL-C and ESC handling to all dialogs (#426)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -53,6 +53,12 @@ export const PlanModeDialog = memo(
|
||||
];
|
||||
|
||||
useInput((_input, key) => {
|
||||
// CTRL-C: immediately exit plan approval (closest to cancel)
|
||||
if (key.ctrl && _input === "c") {
|
||||
onKeepPlanning("User pressed CTRL-C to cancel");
|
||||
return;
|
||||
}
|
||||
|
||||
if (isEnteringReason) {
|
||||
// When entering reason, only handle enter/escape
|
||||
if (key.return) {
|
||||
|
||||
Reference in New Issue
Block a user