Skip to content

Commit fe85862

Browse files
authored
Merge pull request #213 from leedom92/copy-content-in-mobile
feat: setUserInput with onDoubleClickCapture in mobile phone
2 parents 29c20a3 + 6e4e804 commit fe85862

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/components/home.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ export function Chat(props: {
439439
className="markdown-body"
440440
style={{ fontSize: `${fontSize}px` }}
441441
onContextMenu={(e) => onRightClick(e, message)}
442+
onDoubleClickCapture={() => setUserInput(message.content)}
442443
>
443444
<Markdown content={message.content} />
444445
</div>

0 commit comments

Comments
 (0)