mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-27 01:11:40 +00:00
feat(tui): accept raw Ctrl+V as clipboard image paste fallback
This commit is contained in:
parent
f0638f3596
commit
4e1ea79edc
1 changed files with 1 additions and 1 deletions
|
|
@ -464,7 +464,7 @@ export function TextInput({
|
||||||
(inp: string, k: Key, event: InputEvent) => {
|
(inp: string, k: Key, event: InputEvent) => {
|
||||||
const eventRaw = event.keypress.raw
|
const eventRaw = event.keypress.raw
|
||||||
|
|
||||||
if (eventRaw === '\x1bv' || eventRaw === '\x1bV') {
|
if (eventRaw === '\x1bv' || eventRaw === '\x1bV' || eventRaw === '\x16') {
|
||||||
return void emitPaste({ cursor: curRef.current, hotkey: true, text: '', value: vRef.current })
|
return void emitPaste({ cursor: curRef.current, hotkey: true, text: '', value: vRef.current })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue