禁用鼠标中键的粘贴功能
Tofloor
poster avatar
flyingfree
deepin
2017-08-12 01:33
Author
禁用鼠标中键点击粘贴的功能:
echo "pointer = 1 0 3 4 5 6 7 2" > ~/.Xmodmap

也就是,在 ~/.Xmodmap 文件中,
配置,鼠标按键的映射关系,
没有该文件,就自己建立一个。

1:左键
2:中建
3:右键
把 2换成0 ,2移到最后,
这样,鼠标中键的点击的功能就禁用了,
滚轮功能不受影响
0是一个没用定义的值,也可以是其它的,例如:25

这样,鼠标滚轮就只有上下滚动的作用了,
不会再一不小心就粘贴上一些不需要的内容。。

Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-08-12 01:49
#1
看到标题我进来,以为来吐槽的,原来是攻略  
Reply View the author
avatar
deepinwang
deepin
2017-08-13 01:06
#2
不知道为什么中键默认是粘贴功能。在KDE下也是这样。
经常浏览网页时手抽点了中键,然后页面就跳转了
Reply View the author
avatar
flyingfree
deepin
2017-09-16 23:39
#3
修改完成后,注销一下,重新登录即可
Reply View the author