summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/AuthInProgress.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/components/AuthInProgress.tsx')
-rw-r--r--packages/cli/src/ui/components/AuthInProgress.tsx7
1 files changed, 4 insertions, 3 deletions
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({
) : (
<Box>
<Text>
- <Spinner type="dots" /> Waiting for auth... (Press ESC to cancel)
+ <Spinner type="dots" /> Waiting for auth... (Press ESC or CTRL+C to
+ cancel)
</Text>
</Box>
)}