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