From 00cf8b054e8aecbe5edfab9d3e1aa1fbd9bb8580 Mon Sep 17 00:00:00 2001 From: Yifan Song Date: Mon, 1 Jun 2026 23:57:26 +0800 Subject: [PATCH] docs: add Ctrl-J as newline alternative in keyboard shortcuts --- docs/en/guides/interaction.md | 2 +- docs/en/reference/keyboard.md | 2 +- docs/zh/guides/interaction.md | 2 +- docs/zh/reference/keyboard.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/guides/interaction.md b/docs/en/guides/interaction.md index 56279d57..39552b86 100644 --- a/docs/en/guides/interaction.md +++ b/docs/en/guides/interaction.md @@ -4,7 +4,7 @@ Kimi Code CLI runs as an interactive TUI with an input box, conversation view, a ## Input box basics -The input box accepts free-form text; pressing `Enter` sends, and `Shift-Enter` inserts a line break. When the input box is empty, press `↑` / `↓` to browse history for the current directory. +The input box accepts free-form text; pressing `Enter` sends, and `Shift-Enter` or `Ctrl-J` inserts a line break. When the input box is empty, press `↑` / `↓` to browse history for the current directory. Press `Ctrl-D` twice to exit the CLI. `Ctrl-C` interrupts the current turn while streaming; press it twice in the idle state to exit. `Esc` closes dialogs and also interrupts a turn while streaming. diff --git a/docs/en/reference/keyboard.md b/docs/en/reference/keyboard.md index 39939cd0..285367a7 100644 --- a/docs/en/reference/keyboard.md +++ b/docs/en/reference/keyboard.md @@ -11,7 +11,7 @@ The following keys are always available in the input box: | Shortcut | Action | | --- | --- | | `Enter` | Submit the current input | -| `Shift-Enter` | Insert a newline in the input | +| `Shift-Enter` / `Ctrl-J` | Insert a newline in the input | | `↑` / `↓` | Browse input history | | `Esc` | Close popup / cancel completion / interrupt streaming output or an in-progress context compaction | | `Ctrl-C` | Interrupt the current streaming output, or clear the input box | diff --git a/docs/zh/guides/interaction.md b/docs/zh/guides/interaction.md index 81985f11..26bd6e5a 100644 --- a/docs/zh/guides/interaction.md +++ b/docs/zh/guides/interaction.md @@ -4,7 +4,7 @@ Kimi Code CLI 以交互式 TUI 运行在终端中,核心是一个输入框、 ## 输入框基本操作 -输入框接受自由文本,按 `Enter` 发送,`Shift-Enter` 换行。输入框为空时按 `↑` / `↓` 可以浏览当前工作目录的输入历史。 +输入框接受自由文本,按 `Enter` 发送,`Shift-Enter` 或 `Ctrl-J` 换行。输入框为空时按 `↑` / `↓` 可以浏览当前工作目录的输入历史。 按 `Ctrl-D` 两次退出 CLI。`Ctrl-C` 在流式输出中会中断当前轮次,空闲状态下连按两次退出。`Esc` 关闭弹窗,流式输出中也会中断轮次。 diff --git a/docs/zh/reference/keyboard.md b/docs/zh/reference/keyboard.md index d59b249e..fbc1d1b0 100644 --- a/docs/zh/reference/keyboard.md +++ b/docs/zh/reference/keyboard.md @@ -12,7 +12,7 @@ Kimi Code CLI 的 TUI 交互模式支持以下键盘快捷键。键位主要在 | 快捷键 | 功能 | | ------------- | ------------------------------------------- | | `Enter` | 提交当前输入 | -| `Shift-Enter` | 在输入中插入换行 | +| `Shift-Enter` / `Ctrl-J` | 在输入中插入换行 | | `↑` / `↓` | 浏览输入历史 | | `Esc` | 关闭弹窗 / 取消补全 / 中断流式输出或正在进行的上下文压缩(compaction) | | `Ctrl-C` | 中断当前流式输出,或清空输入框 |