Introduction¶
The DSH Web client interaction depends on the input box component. In version 0.1.5, the input box may not handle keyboard events as expected. If you need to support multiline text in the input box, or you want to keep Cmd/Ctrl+Enter as the submit shortcut, you need to fine-tune the default behavior.
Plugin Overview¶
dsh-composer-enter is a keyboard behavior patch for the DSH 0.1.5 Web input box. Maintained by developer wx-yss, it resolves this specific input experience issue by modifying the default mapping of the Enter key.
Core Features¶
- Normal key press
Enter: inserts a line break. - Modifier key combinations:
Cmd+EnterorCtrl+Enter: triggers the native DSH submission behavior. - Input method compatibility: supports input method composition, candidate menu display, and Enter events with other modifier keys.
Installation and Enablement¶
- Run the installation command:
dsh plugin --profile web add dsh-composer-enter
- After installation is complete, restart the DSH process and refresh the browser page.
Compatibility Scope and Notes¶
- DSH CLI compatibility scope: 0.1.5-rc.1
- DSH Web client component compatibility scope: 0.1.5-rc.2
- The plugin does not provide configuration options, does not rely on DOM polling, and does not modify Lexical low-level methods.
- License: MIT
Summary¶
This plugin provides precise keyboard behavior control for the DSH 0.1.5 Web input box. If you need to customize the line break and submission logic of the Enter key, you can install and use it directly. For plugin details and source code, refer to: GitHub | Community Directory