Page 2 of 2
Posted: 25.10.2021 16:54
by sl23
I will post a link to my installation, you can see that it does work this way and you may even find out how it works.
EDIT: Here is the link
Posted: 25.10.2021 17:23
by sl23
I've just tried this function in Notepad++, it works as expected. R-click moves caret, but selecting a part of the text seems to stop the caret moving but allows the R-click context menu to appear.
Maybe that's how it's done. R-click moves caret except when a selection is made, then it temporarily disables this, allowing you to make a selection and then copy the selection to the clipboard using the mouse.
Posted: 25.10.2021 17:26
by main Alexey
>R-click moves caret, but selecting a part of the text seems to stop the caret moving
I don't understand- how N++ moves the caret but the selection remains? it shows caret independently on seleciton??
Posted: 25.10.2021 17:28
by main Alexey
In Cud - selection is just extension of the caret. so, caret moves -> selection must move together with the caret OR reset.
Posted: 25.10.2021 21:08
by sl23
No, not quite. In N++, R-click moves the caret as normal. But when a selection is made, moving the caret is cancelled on R-click and so the selection remains and then the context menu is shown.
It's as though the act of selecting text disables moving the caret allowing you to keep the selection and perform actions on that selection via the context menu.
Posted: 25.10.2021 21:38
by main Alexey
Hm, then it's possible to do that. Will see.
Posted: 25.10.2021 21:54
by main Alexey
+ add: improve option "mouse_rt_click_moves_caret", so that right-click over selection never resets that selection
Try it in beta, pls
http://uvviewsoft.com/c/
Posted: 25.10.2021 22:39
by sl23
Wow! Thank you Alexey, that's great.
Will try tomorrow, too late now.

Posted: 25.10.2021 22:46
by sl23
Couldn't help myself lol
Gave a quick test and it seems to work.
Thank you very much.
