Right-click moves caret (before showing context menu)

Solved bugs are moved into this topic...
sl23
Posts: 161
Joined: 29.01.2013 10:04

Post 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
Live for an ideal and leave no place in the mind for anything else.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Post 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.
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Post 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??
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Post by main Alexey »

In Cud - selection is just extension of the caret. so, caret moves -> selection must move together with the caret OR reset.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Post 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.
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Post by main Alexey »

Hm, then it's possible to do that. Will see.
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Post 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/
sl23
Posts: 161
Joined: 29.01.2013 10:04

Post by sl23 »

Wow! Thank you Alexey, that's great. :D :D
Will try tomorrow, too late now. :(
Live for an ideal and leave no place in the mind for anything else.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Post by sl23 »

Couldn't help myself lol
Gave a quick test and it seems to work.
Thank you very much. :D :D :D
Live for an ideal and leave no place in the mind for anything else.
Post Reply