User forums > Using Code::Blocks

How to disable paste by middle mouse buttons?

(1/3) > >>

notonroof:
Hi, Code::Block 13.12 sometimes randomly paste fragments of code at random position in my codebase. But now i discovered its not bug, its feature! :-) When i copy in Code::Blocks something to clipboard and then press midle mouse button, text is pasted. Please how to disable it?

Here http://forums.codeblocks.org/index.php?topic=18267.0 are written "On windows, just disable the MouseSap-plugin"

I am on windows, i disabled it, uninstaled MouseSap-plugin, restarted Code::Blocks, but this has no effect, nothing helps.

Please, how to disable this error prone feature?

stahta01:
In CB 12.11, disabling MouseSap did stop this feature.

In CB 13.12, it failed to stop this feature.


Tim S.

Alpha:
In Code::Blocks 13.12, middle mouse paste is emulated by the core application to improve functionality, as compared to Linux' native middle mouse paste (which cannot easily be used due to a wx28 clipboard bug).  Unfortunately, this means that disabling this can currently only be done by editing the source and recompiling (the relevant file is sdk/cbstyledtextctrl.cpp line 125).

scarphin:
IMHO the enforcement in the core shouldn't be the way. Anyway I disable it by enabling scrolling in 'Mouse Drag Scrolling' plugin and choosing the 'Mouse Key To Use:' as 'Middle'.

notonroof:
@scarphin: Thanks! It works.

Step-by-step guide, how to disable middle mouse button click paste in Code::Blocks 13.12 :

* Go into Main menu/Settings->Editor->Mouse Drag Scrolling
* Check "Scrolling Enabled"
* In "Mouse Key To Use" select "Middle"
* Click OK to close dialog
* Restart Code::Blocks


Navigation

[0] Message Index

[#] Next page

Go to full version