fix: add consistent CTRL-C and ESC handling to all dialogs (#426)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -63,7 +63,13 @@ export function SubagentManager({ onClose }: SubagentManagerProps) {
|
||||
loadSubagents();
|
||||
}, []);
|
||||
|
||||
useInput((_input, key) => {
|
||||
useInput((input, key) => {
|
||||
// CTRL-C: immediately close
|
||||
if (key.ctrl && input === "c") {
|
||||
onClose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (key.escape || key.return) {
|
||||
onClose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user