dsh-ctrl-enter-send: Enter for newline, Ctrl+Enter to send
The plugin `dsh-ctrl-enter-send` modifies the default send key in DSH's main composer from Enter to Ctrl/Cmd+Enter (with Enter only inserting a line break), resolving the issue of accidentally sending an incomplete prompt when pressing Enter in English mode while using a Chinese IME. This is a community-maintained client bundle that can be installed via `dsh plugin --profile <your-profile> add github:Geopanret/dsh-ctrl-enter-send#v0.1.0`. No build is required, and changes take effect immediately upon switching pages. Uninstallation is performed using `dsh plugin remove`. It operates by intercepting `keydown` events on the window to rewrite modifier keys, ensuring the composer's keymap directs to either the line break or send branch. Menus, IME word composition, and Alt key combinations remain unaffected; if no `data-composer-*` markers are found, it falls back to the default behavior. The article includes a shortcut key comparison table before and after the changes, compatibility details for DSH versions 0.2.0 to 0.3.0, known limitations where the quick reference page may differ from actual behavior, and important notes regarding potential selector failures following a DSH upgrade.
Read More