diff options
| author | fuyou <[email protected]> | 2025-08-20 21:56:53 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-20 13:56:53 +0000 |
| commit | b6e7796346cba33153efed896c10372803286479 (patch) | |
| tree | 3104a26ba34a3bb54529837210b9c76e85139fe0 | |
| parent | c668699e77104e70167c949ddf769baae297162f (diff) | |
docs: Update keyboard shortcuts for input clearing functionality (#6627)
| -rw-r--r-- | docs/keyboard-shortcuts.md | 1 | ||||
| -rw-r--r-- | packages/cli/src/ui/components/Help.tsx | 2 |
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}> |
