Open Bug 1583061 Opened 5 years ago Updated 2 years ago

Make middlemouse.paste pref more consistent with Ctrl+V and Paste (from context menu) on selected text

Categories

(Firefox :: Settings UI, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: crimsteam, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0

Steps to reproduce:

Setting middlemouse.paste pref to true and press middle mouse button on selected text don't change that selected text but always put text on actual cursor position. This behaviour is not consistent with Ctrl+V and Paste (from context menu), which always replace the selected text.

This behavior is intentional? I am not able to quickly select something and replace the contents of the clipboard without an additional step of deleting the selection.

Is there any chance to correct this behavior, even with another preference, if the current behavior is intentional? Due to Webextension restrictions we can't fix it in all browser places (like address bar, search bar, etc.).

Component: Untriaged → Preferences

The middle click paste behaviour originates in the X Window system, where a middle click should paste the primary selection at the specific location that the mouse is pointing to. This isn't something special to Firefox -- X Window users are used to this working in every application. Furthermore, as the primary selection is generally "the currently-selected text", the suggested behaviour reads as "should replace the selected text with the selected text" -- which is obviously a very strange thing to ask for. See https://shallowsky.com/blog/linux/x-selection.html for more information.

Given the varying expectations of users, an option to allow us to choose how this works would be sensible.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.