News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Middle Mouse Button - how to prevent pasting?

Started by rhino, June 07, 2010, 07:12:34 PM

Previous topic - Next topic

rhino

Hi,
The 'paste' function assigned to the middle mouse button is really comfortable for my friends, but I just hate it.
I prefer 'normal' ctrl+v and I don't like it when I accidentally click it, and the clipboard's content automatically pastes into the textfield.
I've looked for an option which would prevent that, for a long time, but I couldn't find it anywhere in the settings.
Can you please tell me, can I disable it? And if yes, how can I do it?
It's important for me. Thanks in advance.
EDIT: Of course without modifying the source code :D

oBFusCATed

Probably you need to search the forum, to find the answer...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

rhino

I've looked for a solution in this forum already, but I didn't find any.

frithjofh

I think this mouse behavior is provided by the so called MouseSap plugin. At least under linux OS. Just try to disable this plugin.

Regards

frithjofh
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

oBFusCATed

Quote from: rhino on June 08, 2010, 03:34:27 PM
I've looked for a solution in this forum already, but I didn't find any.
Are you sure?

Try again with "middle paste" as a search string in the forum's search....
http://forums.next.codeblocks.org/index.php?action=search

and the first result: http://forums.next.codeblocks.org/index.php/topic,7711.0.html
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

rhino

Thanks, that helped me a lot, but after disabling MouseSap there's still some problem.
When some text is selected and I press the middle mouse button, the selected text automatically gets copied and pasted twice in some really strange way. Example:

1.Here we have a clear text.
2.I select a small part of it.
3.I click it with middle mouse button...
4.Voila! That's the result.

frithjofh

That is a perfectly logic behavior. You obviously right-clicked between the tokens WPARAM, and LPARAM); . So the selected text got inserted right there. The only thing which could seem strange is that the selection mark stays where it was, now marking as selected a part of the originaly selected tokens and a part of the newly inserted. But what would be the alternative? To split the selection and select simultaneously to separated tokens? Interseting. If you then right-click again into a selection: what becomes inserted? how will the selection be splited afterwards?

regards

frithjofh
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

rhino

I do not right-click it. I didn't use the right mouse button at all.

frithjofh

my mistake. I beg your pardon. just substitute right-click for middle-click in my last post

regards

frithjofh
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100