- From: ash <notifications@github.com>
- Date: Mon, 29 Apr 2024 13:06:59 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/issues/213@github.com>
Linux machines frequently have multiple clipboards ("selections"). For example, using X11, in addition to the "clipboard" selection that ctrl-C and ctrl-V operate on, there is a "primary" selection which is populated with the last text to be selected, and is pasted from with middle-click. (There is also a "secondary" selection, which is at this point mostly obsolete.) Depending on the compositor, I believe the primary selection is also supported on Wayland. The Clipboard API doesn't make any provision for the existence of these multiple clipboards. This is unfortunate: they're still widely used! For example, middle-clicking the New Tab button in Firefox and Chrome on Linux will open a new tab using the contents of the primary selection (searching it or navigating to it). A concrete example of a place this causes issues: the Tree Style Tab extension for Firefox can't properly emulate this browser behaviour, because it can't access the primary selection when opening new tabs. See https://github.com/piroor/treestyletab/issues/3489#issuecomment-2057176634. Is there any interest in resolving this problem in the standard? It seems like https://github.com/w3c/clipboard-apis/issues/81 covers the same problem, but was closed with no explanation four years ago. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/213 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/issues/213@github.com>
Received on Monday, 29 April 2024 20:07:03 UTC