Opened 3 years ago

Last modified 3 years ago

#13717 assigned Bug

[Blink] Editor loses selection when accessing context menu via Mac's ctrl+click

Reported by: markcharyk Owned by: Tade0
Priority: Normal Milestone:
Component: Core : Editable Version:
Keywords: Cc:

Description

Steps to reproduce

  1. On a Mac machine using Chrome go to the demo page
  2. Select some text
  3. Hold down the control key and left click (single finger on a trackpad) with the mouse

Expected result

The context menu appears and I can cut/copy/paste the selected text

Actual result

The context menu appears but the selection is lost and I can't do the cut/copy/paste operations on the text I wanted

Other details (browser, OS, CKEditor version, installed plugins)

This repros for me both in our app and on the demo page using Chrome version 44. Firefox (version 40) does not reproduce the bug and has the expected behavior. Using a right click or a trackpad two-finger click works fine, but if a ctrl+click is going to show the context menu, it should preserve the selection. You can preserve the selection by ctrl+clicking and holding down the mouse button while you move the mouse over the context menu before releasing, so it seems like the problem is happening on the mouseup event when that event occurs in the editor's editable.

Attachments (1)

13717_repro.html (276 bytes) - added by Tade0 3 years ago.
HTML file reproducing the bug.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 3 years ago by Piotrek Koszuliński

Keywords: editable selection contextmenu webkit ctrl mouseup removed
Summary: Webkit: Editor loses selection when accessing context menu via Mac's ctrl+click[Blink] Editor loses selection when accessing context menu via Mac's ctrl+click
Version: 4.5.3

comment:2 Changed 3 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.5.4
Status: newconfirmed

I cannot reproduce the same issue with plain contenteditable and I could confirm it with CKEditor in Chrome. I'm curious what's causing this issue, so let's check it in 4.5.4.

comment:3 Changed 3 years ago by Tade0

Owner: set to Tade0
Status: confirmedassigned

Changed 3 years ago by Tade0

Attachment: 13717_repro.html added

HTML file reproducing the bug.

comment:4 Changed 3 years ago by Tade0

Status: assignedreview

I managed to reproduce this issue using the attached file, so this seems to be a browser issue.

Tapping the touchpad with two fingers fires the contextmenu event and preserves the selection, but if one were to try to fire the same event using the control key, the selection would vanish.

comment:5 Changed 3 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.5.4
Status: reviewassigned

It sounds like a bug or rather "weirdly implemented feature" in Chrome. Perhaps we could do something, but it does not seem to be that critical to spend weeks on finding some workaround which may break something else. I don't think it's worth it.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy