Skip to content

Commit

Permalink
Merge pull request #213 from leedom92/copy-content-in-mobile
Browse files Browse the repository at this point in the history
feat: setUserInput with onDoubleClickCapture in mobile phone
  • Loading branch information
Yidadaa authored Mar 30, 2023
2 parents 29c20a3 + 6e4e804 commit fe85862
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ export function Chat(props: {
className="markdown-body"
style={{ fontSize: `${fontSize}px` }}
onContextMenu={(e) => onRightClick(e, message)}
onDoubleClickCapture={() => setUserInput(message.content)}
>
<Markdown content={message.content} />
</div>
Expand Down

1 comment on commit fe85862

@vercel
Copy link

@vercel vercel bot commented on fe85862 Mar 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.