mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
fix(tui): support modified enter for multiline input
This commit is contained in:
parent
bb59d3bac2
commit
015f6c825d
4 changed files with 36 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue