Correctly handle selection and opening via clicks
Beforehand we opened a link via mousePress but if what we want is to make a selection that will open a file and drag, not good.
Now we check if we selected or not before trying to open something, if you click and drag a url, it will not open, if you directly click and release without dragging, it will open.