MacOS – How to disable middle click paste Mavericks Terminal

macosmouseterminal

I have looked all over the Net and can't find a way to disable middle-click paste in the Terminal application in Mavericks?
I want it scroll but not paste.

Anybody know how to fix this? I'd sure appreciate the tip.

Best Answer

You can use Karabiner (formerly known as KeyRemap4MacBook) with the following setting in private.xml:

<?xml version="1.0"?>
<root>
    <appdef>
        <appname>Terminal</appname>
        <equal>com.apple.Terminal</equal>
    </appdef>
    <item>
        <name>Disable middle-click</name>
        <identifier>private.disablemiddleclick</identifier>
        <only>Terminal</only>
        <autogen>
            __PointingButtonToKey__ PointingButton::MIDDLE, KeyCode::VK_NONE
        </autogen>
    </item>
</root>