fix(tui): support modified enter for multiline input

This commit is contained in:
Brooklyn Nicholson
2026-04-26 13:52:54 -05:00
parent bb59d3bac2
commit 015f6c825d
4 changed files with 36 additions and 9 deletions

View File

@@ -700,7 +700,7 @@ export function TextInput({
}
if (k.return) {
if (k.shift || (isMac ? isActionMod(k) : k.meta)) {
if (k.shift || k.ctrl || (isMac ? isActionMod(k) : k.meta)) {
flushParentChange()
commit(ins(vRef.current, curRef.current, '\n'), curRef.current + 1)
} else {