Reprinted from: http://yjhexy.iteye.com/blog/785564
Ubuntu Mouse key problem, in fact, is not a problem, Ubuntu mouse button is used to quickly paste, but Windows used to, and occasionally hand a point, the result of a lot of trouble
1, open the Firefox mouse button scroll screen function
Editor, first item, advanced--general--Use automatic scrolling #firefox针对ubuntu提供这个功能真是满贴心
2, cancel the middle mouse button paste function
point in the habit of a moment also can not change, with code or text editor, accidentally above more than a lot of pasted code text, this is more trouble, the results can not run. Took a lot of time to find alternative solutions (Source: Ubuntu wiki), you can click the middle mouse button to replace the left or right, scroll up and down the function of the mouse to keep (find some ways to screen the mouse button, scroll up and down can not be used, that also trouble), and Windows is not exactly the same, But better than the original, here's how to simplify:
First step : Querying the mouse device
$ XInput List | grep ' id= '
Get similar results
" Virtual Core pointer "Id=0 [XPointer] "Virtual Core keyboard" id=1 [Xkeyboard]
"at translated Set 2 keyboard" id=2 [xextensionkeyboard]
"pixart USB OPTICAL MOUSE "id=4 [xextensionpointer]
Second part: Query the mouse button parameter table (can save)
$ xinput get-button-map "PIXART USB OPTICAL MOUSE"
Get Results
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 The 10 
is actually the left button 1, middle key 2, right button 3, other keys All silly try a bit, nothing with
$ xinput set-button-map "PIXART USB OPTICAL MOUSE" 1 1 3
The middle Click to replace the same function with the left button, or change to the right, with "1 3 3" can be, the center of the mouse name remember to use the first query out Replacement of