[Share Experiences] 取消鼠标滚轮按下带有的粘贴功能 Resolved
Tofloor
poster avatar
yanjuner
Super Moderator
2023-12-07 18:45
Author

应用场景

硬件/整机信息:全平台

OS版本信息:全架构


问题现象

这可能是鼠标中间的粘贴功能造成不必要内容的添加。


操作步骤

1、禁用鼠标中键粘贴,使用右键复制粘贴功能

终端输入:xmodmap -e "pointer = 1 25 3 4 5 6 7 2"

这里xmodmap命令是在修改按键映射,pointer表示鼠标,其后的参数是一串指令,其中前三个“1 2 3”就表示鼠标的“左 中 右”三个按键。

2、仅禁用鼠标中键粘贴

终端输入:xmodmap -e "pointer = 1 25 3 4 5 6 7 8"

3、恢复中键功能

终端输入:xmodmap -e "pointer = 1 2 3 4 5 6 7 8"

4、使用命令:xmodmap -pp 可以查看是否修改成功

Reply Favorite View the author
All Replies
jjcui8595
Moderator
2023-12-07 18:51
#1

like

Reply View the author
fax928
Moderator
2023-12-07 18:53
#2

like

Reply View the author
dxy2020
deepin
2023-12-07 18:53
#3

like

试过了,很棒

Reply View the author
TSAC
deepin
2023-12-07 18:55
#4

哇,还有这种高级操作yeah

Reply View the author
晚秋(lateautumn)
Moderator
2023-12-07 19:23
#5

高手。学习了。like

Reply View the author
hyjiao
deepin
2023-12-08 02:09
#6

我不想取消它,我觉得挺好的。applaud

Reply View the author
yanjuner
Super Moderator
2023-12-08 02:10
#7
hyjiao

我不想取消它,我觉得挺好的。applaud

可以的,根据自己需求来设置就行

Reply View the author