mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-05 02:07:34 +08:00
Merge pull request #13064 from NousResearch/fix/right-click-paste
fix: enable right click to paste
This commit is contained in:
@@ -713,6 +713,15 @@ export function TextInput({
|
||||
setCur(next)
|
||||
curRef.current = next
|
||||
}}
|
||||
onMouseDown={(e: { button: number }) => {
|
||||
// Right-click to paste: route through the same hotkey path as
|
||||
// Alt+V so the composer's clipboard RPC (text or image) handles it.
|
||||
if (!focus || e.button !== 2) {
|
||||
return
|
||||
}
|
||||
|
||||
emitPaste({ cursor: curRef.current, hotkey: true, text: '', value: vRef.current })
|
||||
}}
|
||||
ref={boxRef}
|
||||
>
|
||||
<Text wrap="wrap">{rendered}</Text>
|
||||
|
||||
Reference in New Issue
Block a user