fix: add number key support to approval dialogs (#821)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -100,6 +100,17 @@ export const StaticPlanApproval = memo(
|
||||
}
|
||||
if (key.escape) {
|
||||
onKeepPlanning("User cancelled");
|
||||
return;
|
||||
}
|
||||
|
||||
// Number keys for quick selection (only for fixed options, not custom text input)
|
||||
if (input === "1") {
|
||||
onApproveAndAcceptEdits();
|
||||
return;
|
||||
}
|
||||
if (input === "2") {
|
||||
onApprove();
|
||||
return;
|
||||
}
|
||||
},
|
||||
{ isActive: isFocused },
|
||||
|
||||
Reference in New Issue
Block a user