dsh-composer-modenter
Manifest valid★ 1DeepSeek Harness web plugin: Enter for newline, Cmd/Ctrl+Enter to send
dsh-composer-modenter
English
A web composer keymap plugin for DeepSeek Harness.
It flips the default composer shortcuts:
- Enter inserts a newline
- Cmd+Enter (macOS) / Ctrl+Enter (Linux/Windows) sends the message
- Slash / command menus still use Enter to pick an item
- IME composition (e.g. Chinese input) is left untouched
How it works
The plugin is entirely browser-side. It registers a capture-phase keydown
listener on document and, for a plain Enter pressed inside the composer:
- Skips events with any modifier (
shift/meta/ctrl/alt), so Cmd/Ctrl+Enter keeps sending as before. - Skips IME composition events (
isComposingorkeyCode === 229). - Only acts on events inside a
[data-composer-input]element. - Bails out when the slash / command menu is open, so Enter still selects the highlighted menu item.
- Otherwise it masquerades the event as
Shift+Enter; if the native field is frozen it falls back topreventDefault()+insertLineBreak.
Install
dsh plugin --profile web add github:yonchicy/dsh-composer-modenter
Or install from a local checkout:
dsh plugin --profile web add link:/absolute/path/to/dsh-composer-modenter
Restart the web GUI after install or update.
Uninstall
dsh plugin --profile web remove dsh-composer-modenter
License
中文
一款用于 DeepSeek Harness 的 Web 输入框按键插件,反转默认的快捷键行为:
- Enter 换行
- Cmd+Enter(macOS)/ Ctrl+Enter(Linux/Windows)发送消息
- 斜杠 / 命令菜单中仍可用 Enter 选中条目
- 不干扰输入法(IME)组合输入,例如中文打字选词
工作原理
插件逻辑完全运行在浏览器侧。它在 document 上注册捕获阶段的 keydown
监听器,对在输入框内按下的纯 Enter 做如下处理:
- 带任何修饰键(
shift/meta/ctrl/alt)的事件一律放行,因此 Cmd/Ctrl+Enter 照常发送。 - 跳过输入法组合事件(
isComposing或keyCode === 229)。 - 仅处理
[data-composer-input]元素内的事件。 - 斜杠 / 命令菜单打开时不干预,因此 Enter 仍可选中高亮的菜单项。
- 其余情况下将事件伪装成
Shift+Enter;若原生字段被冻结,则回退为preventDefault()+insertLineBreak插入换行。
安装
dsh plugin --profile web add github:yonchicy/dsh-composer-modenter
或从本地检出目录安装:
dsh plugin --profile web add link:/absolute/path/to/dsh-composer-modenter
安装或更新后请重启 Web GUI。
卸载
dsh plugin --profile web remove dsh-composer-modenter
开源协议
Comments
Loading…
From the same category
by awesome-dsh-plugin
A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表
★ 18.3k
CC0-1.0
Python
Oct 10, 2026
by 0xsline
DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.
★ 1.2k
CC0-1.0
Python
Oct 10, 2026
by pax-beehive
Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub
★ 450
MIT
TypeScript
Oct 6, 2026
by xiajiajun516
DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.
★ 176
MIT
TypeScript
Oct 8, 2026
dsh plugin --profile web add dsh-config-managerby yjh051108
推荐组件(非必须):DeepSeek Harness 运行时注入器;已随 dsh-routing-suite 单仓库化保留,本仓库继续维护/发布。
★ 164
TypeScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby jigjoy-ai
A CLI that turns a goal into a pull request - and a sandbox for testing concurrent AI coding agents on the Mozaik runtime.
★ 124
MIT
TypeScript
Oct 2, 2026