Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Linux 設定微軟五鍵滑鼠側鍵實現瀏覽器前進後退功能

編輯:關於 Linux

微軟 IE 系列滑鼠擁有 5 鍵 (左中右 + 兩側),Windows 下側鍵預設控制瀏覽器前進/後退。Linux 下需手動配置 X11 才能啟用同樣功能。

按鍵映射邏輯

Linux 將滾輪視為兩個按鈕 (上/下),故 5 鍵滑鼠共 7 個邏輯按鈕:左(1)、中(2)、右(3)、滾輪上(4)、滾輪下(5)、左側(6)、右側(7)。

修改 X 配置

編輯 /etc/X11/XF86Config-4 (或 XF86Config) 中 InputDevice 區段:

Section "InputDevice"
  Identifier "Mouse0"
  Driver "mouse"
  Option "Device" "/dev/mouse"
  Option "Protocol" "IMPS/2"
  Option "Emulate3Buttons" "no"
  Option "ZAxisMapping" "4 5"      # 滾輪映射
  Option "Buttons" "7"             # 總按鈕數
EndSection

若系統有雙滑鼠 (筆記本觸控板 + 外接滑鼠),需分別定義兩個 InputDevice 區段並在 ServerLayout 中關聯。

瀏覽器側鍵綁定

配置完成後,在 Firefox/Chrome 設定中將「滑鼠按鍵 6/7」綁定至「前進/後退」即可實現與 Windows 一致體驗。

Copyright © Windows教程網 All Rights Reserved