Opened 9 years ago
Last modified 9 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
- On a Mac machine using Chrome go to the demo page
- Select some text
- 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)
Change History (6)
comment:1 Changed 9 years ago by
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 9 years ago by
Milestone: | → CKEditor 4.5.4 |
---|---|
Status: | new → confirmed |
comment:3 Changed 9 years ago by
Owner: | set to Tade0 |
---|---|
Status: | confirmed → assigned |
comment:4 Changed 9 years ago by
Status: | assigned → review |
---|
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 9 years ago by
Milestone: | CKEditor 4.5.4 |
---|---|
Status: | review → assigned |
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.
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.