mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-05 02:07:34 +08:00
fix(tui): support modified enter for multiline input
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user