processing / p5.js-web-editor

The p5.js Editor is a website for creating p5.js sketches, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! You can create, share, or remix p5.js sketches without needing to download or configure anything.
https://editor.p5js.org
GNU Lesser General Public License v2.1
1.3k stars 1.26k forks source link

Linux highlight clipboards does not work #3065

Open syonfox opened 3 months ago

syonfox commented 3 months ago

p5.js version

Web Editor: v2.12.2 p5.js: v1.9.2

What is your operating system?

None

Web browser and version

Firefox 115.8.0esr (64-bit)

Actual Behavior

When you highlight text it is not being picked up by the Linux (Debian 11) highlight clipboards.

I use this feature a lot to quickly copy text in my programing and it would be nice

right now i can highlight text from outside editor and middle click paste it in but if i highlight some potion of my text the os is not detecting that. text and putting it in the clipboareds. not to sure how all of it works but it is very usefull

Some background on the feature https://askubuntu.com/q/1010543

Expected Behavior

Somehow the p5 editor should use a virtual select if your doing a fancy custom highlight mechanism so the text from editors is also copied.

Steps to reproduce

Open p5 web editor

highlight some text middle click it in ... works

highlight different text in the sketch and middle click .. not working

welcome[bot] commented 3 months ago

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.