You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The riot web client seems to override the window manager's handling of selections (primary, secondary, clipboard - see xsel manpage).
The default action of the middle pointer click event is paste from the secondary selection. Instead riot overrides this behavior and implements paste from the primary selection.
Steps to reproduce
select some text (e.g. in a terminal or a web browser) and copy it to the clipboard (e.g. via the context menu or CTRL-C)
select some text with the pointer, but do not copy it to the clipboard (e.g.: just select it with a double-click on a word)
switch to the riot web client
press the middle pointer button
the content selected in step (1) is pasted into the message input field
What I expected instead: the content selected in step (2) being pasted.
Details
The window manager handles three selections: primary, secondary and clipboard.
riot seems to override the middle pointer click with paste from primary. All other applications leave the middle pointer click to the window manager (or some other layer). By default this event triggers a paste from secondary.
The current behavior is surprising and may lead to accidental information exposure, e.g. passwords recently acquired from the local password management application being entered (but not yet submitted) into riot's message input field.
Instead the riot client should let the desktop environment handle the middle pointer click event.
Workaround
middle pointer click in a separate text editor (e.g. gedit)
select the pasted text
copy the selection to the primary clipboard
perform a middle pointer click in riot's message input field
This is especially relevant for content copied from applications that do not support copy to clipboard directly (e.g. some terminals or visualization application).
riot-web is a webapp and any overriding would be done by the browser running it, whatever revolt is using in your case.
Riot does no such overriding for any clipboard paste events.
The web clipboard spec doesn't even have support for multiple selections: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText (and Riot doesn't use it as it has no reason to do custom clipboard reading)
The issue might still be one that can be solved here though.
I looked through various text field inputs and found that it works for all of them except the chat input.
The difference: All of the ones that work are <input..> based elements, whereas the text input is a <div> field.
I tried setting up a local element-web to change that div to input to try and test my theory.
Unfortunately so far I failed to set it up to test. Maybe someone here can?
Description
The riot web client seems to override the window manager's handling of selections (primary, secondary, clipboard - see xsel manpage).
The default action of the middle pointer click event is paste from the secondary selection. Instead riot overrides this behavior and implements paste from the primary selection.
Steps to reproduce
CTRL-C
)What I expected instead: the content selected in step (2) being pasted.
Details
The window manager handles three selections: primary, secondary and clipboard.
riot seems to override the middle pointer click with paste from primary. All other applications leave the middle pointer click to the window manager (or some other layer). By default this event triggers a paste from secondary.
The current behavior is surprising and may lead to accidental information exposure, e.g. passwords recently acquired from the local password management application being entered (but not yet submitted) into riot's message input field.
Instead the riot client should let the desktop environment handle the middle pointer click event.
Workaround
This is especially relevant for content copied from applications that do not support copy to clipboard directly (e.g. some terminals or visualization application).
Version information
For the web app:
The text was updated successfully, but these errors were encountered: