User forums > Using Code::Blocks
disabling the middle mouse buttons "copy - paste" functionality
Pecan:
For Windows:
Pasting with the middle mouse button has always been available in CB. It only pastes when a selection has been previously marked.
To my knowledge, it's hard coded.
MouseSap extended that feature for both window and linux as follows:
If the cursor is withing a marked selection, middle mouse copies it to the clipboard.
Without a selection it pastes the clipboard to the cursor location.
With shift and middle mouse and the cursor is withing a selection, it pastes the clipboard over the selection.
nanyu:
I like this behavior: select some text (but not copied to the clipboard), click the middle mouse button, paste it into the target location.
But I do not like this behavior: I press "Ctrl + C" Copy some text to the clipboard (and possibly in the word processing software), then in the Code:: Blocks where I accidentally press the mouse middle button several times ... ... totally messed up my code. The worst is that sometimes I did not even notice this behavior.
Pecan:
--- Quote from: nanyu on May 23, 2010, 05:32:40 pm ---I like this behavior: select some text (but not copied to the clipboard), click the middle mouse button, paste it into the target location.
But I do not like this behavior: I press "Ctrl + C" Copy some text to the clipboard (and possibly in the word processing software), then in the Code:: Blocks where I accidentally press the mouse middle button several times ... ... totally messed up my code. The worst is that sometimes I did not even notice this behavior.
--- End quote ---
Then, if you are running the plugin MouseSap, remove it.
If you are not running MouseSap, you must be on Linux, where the "feature" is hard coded into the OS.
Navigation
[0] Message Index
[*] Previous page
Go to full version