Replies: 3 comments 4 replies
-
You can disable drag and drop / link clicking by holding Alt, maybe thats useful to find references in the code |
Beta Was this translation helpful? Give feedback.
-
Just for the record, there's a script https://github.com/eight04/select-text-inside-a-link-like-opera that emulates the old Opera behaviour. I'm also a former Opera user, and I've been using this one ever since leaving the browser. To be honest, having to press and hold |
Beta Was this translation helpful? Give feedback.
-
EDIT: implemented in #2080 Found it! Thanks to @networkException's hint. It is in third_party/blink/renderer/core/editing/selection_controller.cc bool IsSelectionOverLink(const MouseEventWithHitTestResults& event) {
return (event.Event().GetModifiers() & WebInputEvent::Modifiers::kAltKey) !=
0 &&
event.IsOverLink();
} Always returning Is this useful for ungoogled-chromium? Unfortunately I couldn't hide it behind a flag. I used https://github.com/ungoogled-software/ungoogled-chromium/blob/master/patches/extra/ungoogled-chromium/add-flag-to-disable-sharing-hub.patch as an inspiration, and modified if (base::CommandLine::ForCurrentProcess()->HasSwitch("disable-link-drag"))
{return event.IsOverLink();}
else {
return (event.Event().GetModifiers() & WebInputEvent::Modifiers::kAltKey) !=
0 &&
event.IsOverLink();
} But |
Beta Was this translation helpful? Give feedback.
-
Does anyone know of a way of preventing the drag-drop feature for links by default?
I mean the internals of a browser. I did grepping through the sources for "drag" "draggable", but could not find any place, where the bahaviour could be modified. Since I'm coming from an older Opera, this inability of selecting text anywhere I want just drives me crazy :(
Beta Was this translation helpful? Give feedback.
All reactions