在以前版本的 Ubuntu 中,我曾经使用gpointing-device-settings启用中鼠标模拟。该软件包也适用于 14.04,所以我想它仍然有效:
sudo apt-get install gpointing-device-settings
gpointing-device-settings
Run Code Online (Sandbox Code Playgroud)
更新 1: gpointing-device-settings 在 14.04 上崩溃。但我找到了一种解决方法,可以在 dconf 中手动启用中鼠标模拟:
sudo apt-get install dconf-editor
dconf-editor
Run Code Online (Sandbox Code Playgroud)
导航到/org/gnome/settings-daemon/peripherals/mouse并激活middle-button-enabled。
更新 2:上述方法对于 16.04 LTS 仍然有效。但这个官方解决方法的第一步有所帮助。请注意,指南的其余步骤可能不适用。
创建文件/usr/share/X11/xorg.conf.d/middle-mouse-button.conf并插入
Section "InputClass"
Identifier "middle button emulation class"
MatchIsPointer "on"
Option "Emulate3Buttons" "on"
EndSection
Run Code Online (Sandbox Code Playgroud)
更新 3: Ubuntu 再次使用 Gnome 后,情况再次发生变化。对于 17.10、18.04 等,可以使用Gnome 调整工具应用设置,如本问答中所述:键盘和鼠标 -> 中键单击粘贴