From 7596481a9d537715ce74309b2b3da85d192d059a Mon Sep 17 00:00:00 2001 From: Shehab <127568346+dizzydroid@users.noreply.github.com> Date: Thu, 7 Aug 2025 20:26:55 +0300 Subject: feat(cli): Allow Exiting Authentication Menu with CTRL+C (SIGINT) (#4482) Co-authored-by: Seth Troisi --- packages/cli/src/ui/components/AuthInProgress.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packages/cli/src/ui/components/AuthInProgress.tsx') diff --git a/packages/cli/src/ui/components/AuthInProgress.tsx b/packages/cli/src/ui/components/AuthInProgress.tsx index 196097f2..f05efe1d 100644 --- a/packages/cli/src/ui/components/AuthInProgress.tsx +++ b/packages/cli/src/ui/components/AuthInProgress.tsx @@ -18,8 +18,8 @@ export function AuthInProgress({ }: AuthInProgressProps): React.JSX.Element { const [timedOut, setTimedOut] = useState(false); - useInput((_, key) => { - if (key.escape) { + useInput((input, key) => { + if (key.escape || (key.ctrl && (input === 'c' || input === 'C'))) { onTimeout(); } }); @@ -48,7 +48,8 @@ export function AuthInProgress({ ) : ( - Waiting for auth... (Press ESC to cancel) + Waiting for auth... (Press ESC or CTRL+C to + cancel) )} -- cgit v1.2.3