OpenClaw WebUI: Send Messages with Ctrl+Enter
Based on openclaw v2026.3.24
To implement sending messages with Ctrl+Enter on the webui page
In this file
```
/usr/lib/node_modules/openclaw/dist/control-ui/assets/index-Ij2djnNX.js
```
Find the key code
```
if(n.key===`Enter`&&!n.shiftKey){
if(n.isComposing||n.keyCode===229||!e.connected)return;
n.preventDefault(),t&&(e.draft.trim()&&f.push(e.draft),e.onSend())
}
```
Change
```
if(n.key===`Enter`&&!n.shiftKey){
```
to
```
if(n.key===`Enter`&&n.ctrlKey&&!n.shiftKey){
```
In the future, if openclaw releases a new version, theoretically the file name will change.
But you can send the following to them
To implement sending messages with Ctrl+Enter on the webui page
For openclaw v2026.3.24, in this file
```
/usr/lib/node_modules/openclaw/dist/control-ui/assets/index-Ij2djnNX.js
```
Find the key code
```
if(n.key===`Enter`&&!n.shiftKey){
if(n.isComposing||n.keyCode===229||!e.connected)return;
n.preventDefault(),t&&(e.draft.trim()&&f.push(e.draft),e.onSend())
}
```
Change
```
if(n.key===`Enter`&&!n.shiftKey){
```
to
```
if(n.key===`Enter`&&n.ctrlKey&&!n.shiftKey){
```
The file name in your current version may have changed, but you can refer to this approach.
========
update
For the just-released v3.28, only the file name has changed, and the modification still works.
========