CodeMirror doesn't paste with middle mouse click in Firefox
Categories
(DevTools :: Source Editor, defect, P4)
Tracking
(Not tracked)
People
(Reporter: a.samirh78, Unassigned)
References
Details
Attachments
(1 file)
|
379 bytes,
text/html
|
Details |
Updated•12 years ago
|
Updated•12 years ago
|
| Reporter | ||
Comment 2•12 years ago
|
||
| Reporter | ||
Updated•12 years ago
|
Comment 3•12 years ago
|
||
Updated•12 years ago
|
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
Comment 13•12 years ago
|
||
Comment 14•12 years ago
|
||
Comment 15•12 years ago
|
||
Updated•12 years ago
|
Updated•12 years ago
|
Updated•12 years ago
|
Comment 18•8 years ago
|
||
Updated•8 years ago
|
Comment 20•8 years ago
|
||
Comment 21•8 years ago
|
||
Comment 23•8 years ago
|
||
Comment 24•8 years ago
|
||
Updated•8 years ago
|
Comment 26•8 years ago
|
||
Comment 28•8 years ago
|
||
Comment 30•8 years ago
|
||
Hello again Masayuki,
I was looking at this those days, and I put up a demo of how (I think), CodeMirror is supposed to handle that.
In CodeMirror, there's a hidden (0px height) textarea that has a paste event listener [1].
Then a container, which takes the whole visible space of the CodeMirror element, also has a paste event listener which focus the textarea [2] (in order to get the paste event to fire there too I guess).
I'm about to monkeypatch the m-c checked-in version of CodeMirror to use dispatchEvent instead (which makes pasting with middle click work in the console), but I was wondering if there's a Gecko issue here.
Comment 32•7 years ago
|
||
Hmm, event target chain is created when browser dispatches an event. So, even if web apps change focused element during propagation of an event, the event won't be fired on the newly focused element.
Actually, the testcase does not work on Chromium on Linux too. So, I think that you missed something of CodeMirror.
Fixed in Bug 1482875
Description
•