Windows XP
改registry,執行regedit,然後找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout,然後在同一層下新增一個二進位機碼"Scancode Map",數值資料是"00000000 00000000 03000000 3A001D00 1D003A00 00000000"。懶得打或怕打錯就把以下存成xxx.reg檔,然後匯入"登錄編輯程式"(registry)裡。重開機~
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,1d,00,1d,00,3a,00,\
00,00,00,00
Linux
在xorg.conf裡找到
登出再登入~
Section "InputDevice"
Identifier "Keyboard0"
...
# 加以下這行
Option "XkbOptions" "ctrl:swapcaps"
via: Swapping Caps Lock and Control
2 則留言:
OpenSUSE裡用啟動SAX2, 不用幹嘛儲存設定檔後就會在/etc/X11下多出一個xorg.conf
照上面的加完swapcaps後, 看到comment裡有寫說Section ServerFlags要照下正設定, 才會生效
Option "AutoAddDevices" "off"
[OpenSUSE 11.3 KDE]
Configure Desktop -> General -> Personal的Tab中: Regional & Language -> Keyboard Layout
Layout的Tab點Enable keyboard layouts
Advanced的Tab找Ctrl key position有一個Swap Ctrl and CapsLock打勾
張貼留言