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,6 +63,12 @@ export function PinDialog({
|
||||
const scopeText = local ? "to this project" : "globally";
|
||||
|
||||
useInput((input, key) => {
|
||||
// CTRL-C: immediately cancel (bypasses mode transitions)
|
||||
if (key.ctrl && input === "c") {
|
||||
onCancel();
|
||||
return;
|
||||
}
|
||||
|
||||
if (key.escape) {
|
||||
if (mode === "input" && !isDefault) {
|
||||
// Go back to choose mode
|
||||
|
||||
Reference in New Issue
Block a user