psi-im / psi

XMPP client
https://psi-im.org/
Other
404 stars 122 forks source link

Right click on a link (select more than the link) #749

Closed Neustradamus closed 7 months ago

Neustradamus commented 7 months ago

Historical problem, when we do a right click on a link, more than the link is selected.

http https xmpp ...

Example:

Neustradamus commented 7 months ago

I have sent several examples to @Ri0n directly to show the problem.

Examples:

Test1
https://github.com/psi-im/psi/issues/749
Test1

Test2 https://github.com/psi-im/psi/issues/749 Test2

Test3 https://github.com/psi-im/psi/issues/749
Test3
Test4 https://github.com/psi-im/psi/issues/749

Test4
Test5

https://github.com/psi-im/psi/issues/749

Test5
Test1
https://github.com/psi-im/psi/issues/749
Test1

Test2 https://github.com/psi-im/psi/issues/749 Test2

Test3 https://github.com/psi-im/psi/issues/749
Test3

Test4 https://github.com/psi-im/psi/issues/749

Test4

Test5

https://github.com/psi-im/psi/issues/749

Test5

Results: Test1 -> All is selected (Test1 + Test1link + Test1) Test2 -> The Test2link only Test3 -> The Test3link + Test3 Test4 -> The Test4link + empty line + Test4 Test5 -> All is selected (Test5 + empty line + Test5link + empty line + Test5)

All examples in one (With examples Test1 -> Test5) Link between Test1: Test1 to Test2 (Test1 + Test1Link + empty line + Test2) Link between Test2: Test2Link only Link between Test3: Test3Link + Test3 + empty line + Test4 Link between Test4: Test4Link + empty line + Test4 + empty line + Test5 + Test5link + empty line + Test5

Only a "space" stops the selected part, not a new line (empty or with a text).