summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/keyboard-shortcuts.md1
-rw-r--r--packages/cli/src/ui/components/Help.tsx2
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/keyboard-shortcuts.md b/docs/keyboard-shortcuts.md
index bc86b84f..a0c82201 100644
--- a/docs/keyboard-shortcuts.md
+++ b/docs/keyboard-shortcuts.md
@@ -29,6 +29,7 @@ This document lists the available keyboard shortcuts in the Gemini CLI.
| `Ctrl+A` / `Home` | Move the cursor to the beginning of the line. |
| `Ctrl+B` / `Left Arrow` | Move the cursor one character to the left. |
| `Ctrl+C` | Clear the input prompt |
+| `Esc` (double press) | Clear the input prompt. |
| `Ctrl+D` / `Delete` | Delete the character to the right of the cursor. |
| `Ctrl+E` / `End` | Move the cursor to the end of the line. |
| `Ctrl+F` / `Right Arrow` | Move the cursor one character to the right. |
diff --git a/packages/cli/src/ui/components/Help.tsx b/packages/cli/src/ui/components/Help.tsx
index d9f7b4a8..533e814c 100644
--- a/packages/cli/src/ui/components/Help.tsx
+++ b/packages/cli/src/ui/components/Help.tsx
@@ -149,7 +149,7 @@ export const Help: React.FC<Help> = ({ commands }) => (
<Text bold color={Colors.AccentPurple}>
Esc
</Text>{' '}
- - Cancel operation
+ - Cancel operation / Clear input (double press)
</Text>
<Text color={Colors.Foreground}>
<Text bold color={Colors.AccentPurple}>