User forums > Using Code::Blocks
disabling the middle mouse buttons "copy - paste" functionality
christobal:
Hello everyone
I use Code::Blocks now for some time and have occasionally a problem when I scroll through the source code. The problem is, that I somtimes accidetally press the mouse wheel, which is interpreted as "pressed middle button" by Code::Blocks. And if now, in addidion to that, some text was previously selected, it will be pasted at the current cursor position. Usually I don't even notice it until the next build.
So I think that it could be useful to disable the "middle-mouse-button" copy - paste functionality in the Code::Blocks Editor Settings menue (this will only be possible for windows users). Beside that, it could prevent a conflict with the "mouse drag-scrolling" if the middle mouse button is selected for drag-scrolling.
Thanks
Pecan:
I didn't even know about the middle-mouse button as a paste function.
But I can certainly fix the conflict when it's used for cbDragScroll.
I cannot enable/disable it for the editor though.
thomas:
It was added October 2, 2006 on account of feature request 2660.
During the 484 days since then, there never seemed to be a need for turning off this feature, so none was built in. I guess that if the dragscroll plugin interferes, you can simply push an event handler for the middle mouse button, this should catch it early.
Pecan:
--- Quote from: christobal on January 29, 2008, 08:18:24 am ---... Beside that, it could prevent a conflict with the "mouse drag-scrolling" if the middle mouse button is selected for drag-scrolling.
...
--- End quote ---
Fixed for DragScroll in svn 4849
christobal:
--- Quote ---It was added October 2, 2006 on account of feature request 2660.
During the 484 days since then, there never seemed to be a need for turning off this feature, so none was built in.
--- End quote ---
At first I thought it was a problem with the key binder (according to http://forums.codeblocks.org/index.php/topic,6003.msg56341.html#msg56341) , so I deactivated it. Maybe mastermatic and numpty had the same problem.
I think the option to turn it off would be useful. Otherwise I'll have to use cbDragScroll to catch the Mouse events (even if I don't really like to scroll with the pressed mouse wheel).
Navigation
[0] Message Index
[#] Next page
Go to full version