saljam / webwormhole

Peer authenticated WebRTC.
BSD 3-Clause "New" or "Revised" License
1.82k stars 92 forks source link

Feature request: Support for sending text #83

Closed rene-dev closed 3 years ago

rene-dev commented 3 years ago

I tried to send a long link to another device, but pasting text does not seem to work. I think this would be a very useful feature.

saljam commented 3 years ago

Hi!

Did you try it on the browser extension or on the website? I recently added support for pasting with cmd+v/ctrl+v on the web version. I'll make an extension release this week that'll also bring this functionality.

(The UX definitely needs some work though! It's not discoverable and doesn't work on mobile or touch screen. Clipboard API looks promising to add a "paste" button but different browsers implemented it differently last time I tried it.)

saljam commented 3 years ago

I've added a button that uses the Clipboard API on browsers that support it. It seems to work on Chrome, Safari (macOS & iOS) but Firefox sadly doesn't. cmd+v/ctl+v should still work on desktop browsers and the extensions that support it.

I'll close this. Feel free to reopen if you spot anything broken in it.