rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Geopanret/dsh-ctrl-enter-send
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Change the DSH composer's send key from Enter to Ctrl+Enter: Enter inserts a newline, Ctrl+Enter (Cmd+Enter on macOS) sends.
This fixes a concrete annoyance: when a Chinese IME is left in English mode, hitting Enter to start a new line sends a half-written prompt to the AI instead.
This package is a DSH bundle distributed from GitHub. Install it with the DSH CLI (the official git-install path) and pin the release tag:
dsh plugin --profile <your-profile> add github:Geopanret/dsh-ctrl-enter-send#v0.1.0
dsh.profile.bundles and activates the next time the page loads (a page refresh is enough; no DSH restart needed).github:Geopanret/dsh-ctrl-enter-send#<sha>) is recommended, so later pushes cannot silently change what you run. Omit the #<ref> to track the default branch.client.js is the whole browser bundle). pnpm does not need an allowBuilds entry.dsh plugin --profile <your-profile> remove dsh-ctrl-enter-send (or from the Plugins page).Compatibility: DSH >=0.2.0 <0.3.0 (declared in engines.dsh; tested on 0.2.1-rc.5).
| Action (focus in the main chat composer) | Before | After |
|---|---|---|
| Enter | send (or queue/steer while running) | newline (same as Shift+Enter) |
| Shift+Enter | newline | newline (unchanged) |
| Ctrl+Enter / Cmd+Enter | complementary delivery mode | send, exactly like the Send button (while running it follows Settings → General → busy-Enter: queue or steer) |
| Empty draft + Ctrl+Enter while running with queued messages | steer all queued messages | unchanged |
Enter while the / or @ menu is open |
select the highlighted item | unchanged |
| Enter while an IME is composing | confirm the composition | unchanged |
| Alt+Enter / Ctrl+Shift+Enter / AltGraph+Enter | ignored by the built-in keymap | unchanged |
| Other inputs (rename, inline message edit, settings, dialogs, question cards) | unchanged | unchanged |
Clicking the Send button is unchanged; it and Ctrl+Enter use the same "plain Enter" gesture.
The plugin is browser-only. At page boot it installs one capture-phase keydown listener on window and rewrites the modifier flags of the event object, so the composer's existing keymap takes its own newline branch (Shift+Enter) or its own send branch (plain Enter):
shiftKey = true (built-in newline);ctrlKey/metaKey = false (built-in send);DOM contract used (DSH 0.2.1-rc.x): [data-composer-input], [data-composer-card], [data-trigger-menu], [data-composer-overlay], [data-composer-placeholder]. If any marker is missing, the plugin falls back to the built-in behavior instead of guessing — the worst case is "no change", never a mis-send.
If overriding the event flags is impossible in some environment, the plugin falls back to stopping the original event and replaying a synthetic Enter with the intended flags.
data-composer-* markers; the plugin then silently reverts to the built-in keys. Update the selectors in client.js after such an upgrade.dsh plugin --profile <dev-profile> add /path/to/dsh-ctrl-enter-send
client.js is the whole client bundle (no build step); changes are picked up by DSH's client HMR watcher without restarting DSH. Host-side index.js changes need a restart.
MIT. See LICENSE.
This is a community plugin, not an official DeepSeek package.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。