fix: add consistent CTRL-C and ESC handling to all dialogs (#426)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -100,6 +100,12 @@ export function HelpDialog({ onClose }: HelpDialogProps) {
|
||||
useInput(
|
||||
useCallback(
|
||||
(input, key) => {
|
||||
// CTRL-C: immediately close
|
||||
if (key.ctrl && input === "c") {
|
||||
onClose();
|
||||
return;
|
||||
}
|
||||
|
||||
if (key.escape) {
|
||||
onClose();
|
||||
} else if (key.tab) {
|
||||
|
||||
Reference in New Issue
Block a user