Page MenuHomePhabricator

Middle click to paste inserts content at start of document if the document isn't focused
Closed, ResolvedPublic

Description

Reported at https://www.mediawiki.org/wiki/Topic:Wt1ok6mwjodmelg1.

  1. Open a reply tool
  2. Type some text
  3. Select some text outside of the tool
  4. Middle click at the end of the reply tool line

Observe: the text is inserted at the start of the reply,

Expected: The text is inserted when you clicked, at the end of the line

Event Timeline

Change 810018 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] Insert content at click coords when middle click pasting to a blurred surface

https://gerrit.wikimedia.org/r/810018

I'm going to confess never realizing that we did this. Middle-click pasting is a linux-only thing, right?

I'm going to confess never realizing that we did this. Middle-click pasting is a linux-only thing, right?

Yes, and we only handle it when it's the native behavior of the platform.

Change 810018 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Insert content at click coords when middle click pasting to a blurred surface

https://gerrit.wikimedia.org/r/810018

Change 812082 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (71e970992)

https://gerrit.wikimedia.org/r/812082

Change 812082 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (71e970992)

https://gerrit.wikimedia.org/r/812082

EAkinloose subscribed.

✅ The text is inserted when you clicked, at the end of the line. See https://photos.app.goo.gl/W3RgzLr7Zpy1cmDW9.

ppelberg claimed this task.