|
|
|
|
|
by markussss
1561 days ago
|
|
GitLab's diff or Code Review has an extremely annoying feature for people who fidget with text, especially when dragging text. In addition to highlighting and "painting" the text, I often click and drag the highlighted text around. If some text is dragged onto the code view in Firefox, the dropped text seems to be treated like URLs, and opened either in new tabs or in the current tab. https://gitlab.com/gitlab-org/gitlab/uploads/666d09080e20ea8... |
|
Alternatively, if you feel like rebuilding Firefox yourself, it looks like nsBaseDragService.cpp _might_ help you with preventing stuff from being dropped anywhere; I haven't read the whole file, but going by the name, overriding aCanDrop and mCanDrop to false might help. See lines 62, 84, 92. This _might_ allow you to continue dragging stuff around but disable dropping stuff.
[1]: https://searchfox.org/mozilla-central/source/widget/nsBaseDr...