Preface¶
When writing prompts in DeepSeek Harness (DSH) Web, whether the Enter key sends a message or creates a newline often conflicts with your muscle memory from other IM or editor applications. While DSH natively provides settings like “Enter key behavior when busy,” the specific configuration of “which key triggers send” versus “which key creates a newline” may still not align with personal habits. If you wish to bind send, newline, and interrupt actions (during task execution) to convenient hotkeys without heavily modifying DSH, and manage these schemes uniformly via the plugin page or a floating panel, the following introduces the community plugin dsh-composer-keys (maintained by zlqd123).
What is this¶
dsh-composer-keys is a client-side plugin for the DeepSeek Harness Web frontend (current public version v0.1.4, targeting DSH 0.2.x; the README notes it has been verified on DSH 0.2.1-rc.2). It assigns Enter, Ctrl/Cmd+Enter, Shift+Enter, or any custom hotkey to three actions: “Send,” “Newline,” and “Interrupt.” Configuration is written to the composer-keys namespace within the DSH user settings document, persisting via the same channel as theme and language preferences. The default behavior matches the factory settings—if you do not modify the key bindings after installation, the plugin does not intervene in the page.
Maintainer’s Note: DSH already has a Settings → Shortcut editing interface. If the official implementation later provides similar capabilities for customizing send/newline/interrupt actions, this project plans to cease maintenance and be archived.
Core Features¶
Three-Channel Key Bindings & Mutual Exclusion¶
- Send, Newline, and Interrupt each bind a set of hotkeys (comma-separated, e.g.,
enter, ctrl+enter; modifier order is flexible). - The same hotkey cannot belong to multiple actions simultaneously; if a key is duplicated across actions, it is automatically migrated based on priority: Send > Newline > Interrupt.
- Interrupt has no default binding; leaving it empty means it is disabled. When triggered, it functions equivalent to the input box stop button, utilizing the native cancellation pipeline (including sub-agent address routing). It is only effective anywhere on the page while a task is running; it yields priority when dialogs/menus are open and does not capture keys when idle.
Key Schemes¶
The plugin page features a “Key Scheme” checkbox bar at the top:
- Two built-in schemes: DSH Native and WeChat Style.
- Up to 3 user-defined custom schemes (same name overwrites).
- Checking a scheme switches all three key fields as a group; if the current settings match a scheme exactly, it is automatically checked; if they match none, all are unchecked.
- If “New scheme name” is left blank, only the key bindings are saved without creating a new scheme; entering a name and clicking “Save” applies the key bindings and writes the new scheme to the list.
Two Configuration Interfaces (DSH 0.2.x)¶
- Plugin Page (Recommended): Sidebar “Plugins” →
dsh-composer-keys. It embeds the official DSHSettingsForm: three text configuration items + “New scheme name” + scheme bar. Changes are only written after clicking “Save”; leaving the page discards unsaved edits. Invalid hotkeys are marked in red and block saving. - Floating Panel (Legacy 0.1.x interface): Located in Settings → General under the “Input box keys” row, or via the small keyboard button to the right of the chat input toolbar. Key changes take effect immediately (no save button), supporting chip addition/deletion and “+ Record key”. A deep link to the plugin page is available at the bottom; the README notes that future versions will migrate towards the plugin page.
Both interfaces support “+ Record key”: click and press the desired key combination directly (Esc to cancel; when recording for the Interrupt channel, pressing Esc records Esc). Composition input via IME (Chinese/Japanese, etc.) is not intercepted.
Relationship with Native “Enter Key Behavior When Busy”¶
The plugin manages “which key triggers send”; DSH native settings manage “whether sending queues or redirects when the agent is busy.” Gestures hitting the “Send” binding are replayed as synthetic normal Enter events, handled by the native submission pipeline. Once key bindings deviate from factory defaults, all send keys (including Ctrl/Cmd+Enter) uniformly follow the native busy-Enter setting, retaining no reverse characteristics of Ctrl/Cmd+Enter. If key bindings remain at factory defaults, the plugin does not intervene at all.
Version Compatibility & Persistence¶
| DSH Version | Status | Settings Persistence Channel |
|---|---|---|
| 0.1.7-rc.2 / 0.1.7-rc.1 | Adapted | configForms + Entry volatile Config derived namespace |
| ≤ 0.1.6 | Compatible | settingsScope.bind / settings.register |
No page refresh is required after saving; if a save is rejected, the native prompt “This deployment did not accept these values” appears, and the draft is preserved. Plugin page controls adapt automatically to DSH dark/light themes.
Installation & Enablement¶
The installation method provided in the README is via a symbolic link from a local checkout (changes take effect after restarting the source code):
dsh plugin --profile web add ./dsh-composer-keys
Takes effect after restarting dsh web; if the browser behaves abnormally, please hard refresh (Ctrl+Shift+R). To uninstall:
dsh plugin --profile web remove dsh-composer-keys
The plugin runs with the permissions of the current dsh process; please review the GitHub repository source code and the MIT license before installation. The host half-dependency is @deepseek-ai/schemastery (package.json specifies ~3.18.4), and Node requires >=22.19.0.
Typical Usage¶
- Open the sidebar “Plugins”, enter
dsh-composer-keys(Settings → Built-in plugins to view running status). - Manually type comma-separated hotkeys into the “Send / Newline / Interrupt” fields, or use the “+ Record key” button next to the fields to record them.
- To switch habits with one click, check DSH Native, WeChat Style, or a saved custom scheme under “Key Scheme”, verify the linked fields below, and click “Save”.
- To save the current triplet as a custom scheme: modify the three fields, enter a name in “New scheme name” (up to 3 custom schemes), then click “Save”.
- If you prefer instant key testing, click the “Classic Interface” in the title row or open the floating panel from General/next to the input box; once satisfied, go to the plugin page to save and write to the user document.
Ground truth can be viewed on the server side: the - id: composer-keys entry in ~/.dsh/profiles/web/cordis.patch.yml; registration status is in package.json in the same directory.
Suitable Scenarios & Notes¶
Suitable for: Developers who write long-form content in the DSH Web main chat input box, wish to align Send/Newline/Interrupt with WeChat or other tools, and want to sync key bindings across multiple devices via the user settings document.
Notes:
- The community plugin directory SkillHub Plugin Page is an independent ecosystem site with no official affiliation with DeepSeek / High-Flyer; DSH’s philosophy is “Everything is a plugin,” so selecting community packages requires self-evaluation of maintenance status (the README has declared maintenance boundaries).
- If a major DSH version changes the input box DOM (current anchor is
[data-input-scroll]), interception may silently fail without breaking native functionality. - Loading new plugin code requires restarting
dsh web; browser-side modules may require a hard refresh if cached. The plugin page form relies on optional UI packages; if loading fails, the keyboard engine remains usable, but the configuration page may be absent (console will show[composer-keys] optional require failed).
Links¶
- Directory Page: https://www.skillhub.cn/plugins/zlqd123/dsh-composer-keys
- Source Code & Full Documentation: https://github.com/zlqd123/dsh-composer-keys