Eclipse 中五键鼠标无法使用的解决方法
Eclipse 中五键鼠标无法使用的解决方法
五键鼠标还是挺爽的,用惯了前进/后退 键就摆脱不了了。可惜在 Eclipse 下这两个按键竟然不听使唤。还好有办法解决它。
如果是 Windows 下,装一个 Logitech 或 Microsoft 的鼠标驱动,在鼠标设置中把两个侧键分别映射为 Alt+左方向键 和 Alt+右方向键 即可。
如果是 Linux 下,需要做几件事:
1. /etc/X11/xorg.conf 中 InputDevice 一节改为
- Section "InputDevice"
- Identifier "Mouse0"
- Driver "mouse"
- Option "CorePointer"
- Option "Device" "/dev/psaux"
- Option "Protocol" "auto"
- Option "Buttons" "7"
- Option "ZAxisMapping" "4 5"
- Option "ButtonMapping" "1 2 3 6 7"
- EndSection
2. 安装 imwheel
3. /etc/X11/imwheel/imwheelrc 改为
- #Thanks to Veiz
- ".*"
- None, Thumb1, Alt_L|Left
- None, Thumb2, Alt_L|Right
4. /etc/X11/imwheel/startup.conf 改为
- IMWHEEL_START=1
- IMWHEEL_PARAMS='-b "0 0 0 0 8 9"'
5. 重启X
评论暂时关闭