Uh oh!
There was an error while loading. Please reload this page.
Fix keybind documentation: use return instead of enter - #5282
Fix keybind documentation: use return instead of enter#5282StevenTCramer wants to merge 1 commit into
Conversation
Fix keybind documentation: use return instead of enter The keybind parser doesn't normalize enter to return, but the terminal sends key events as return. This causes keybinds using enter (like input_submit: "enter" and input_newline: "shift+enter") to silently fail. Updated all instances of enter to return to match what the terminal actually sends and what the code expects internally.
Ruagewei
commented
Dec 9, 2025
Hello, I've already modified the return but the problem still persists. Why is that? |
kommander
commented
Dec 9, 2025
@StevenTCramer newer versions should actually alias return/enter both ways. |
Ruagewei
commented
Dec 9, 2025
When I’m using the OpenCode extension in VS Code, neither the Return key nor the Enter key works. What’s causing this issue? I tried setting Shift + Enter to insert a new line, but it still doesn’t work — the only thing that works is Control + J. |
kommander
commented
Dec 9, 2025
@Ruagewei the issue is that xterm.js that is used in vscode does not support alternate keys/modify other keys, neither CSI u nor kitty keyboard. There is no way to get modifiers for the enter/return key, so the terminal always just sends \r. The only way is to setup a custom key binding in the vscode config to send \n for shift+enter. |
f1ae801 to
08fa7f7CompareClosing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Fix keybind documentation: use return instead of enter
The keybind parser doesn't normalize enter to return, but the terminal sends key events as return. This causes keybinds using enter (like input_submit: "enter" and input_newline: "shift+enter") to silently fail.
Updated all instances of enter to return to match what the terminal actually sends and what the code expects internally.