老筆電的鍵盤 最近 在用到一半時 會出現 Del鍵 隨機亂發的問題。
常常會跳出 刪除檔案 視窗 問確認要刪除檔案。
本來想用 autohotkey來修改
https://www.autohotkey.com/docs/misc/Remap.htm
Limitation: AutoHotkey's remapping feature described below is generally not as pure and effective as remapping directly via the Windows registry. For the advantages and disadvantages of each approach, see registry remapping.
找了一下autohotkey資料 發現 Windows registry也可以改 remap,而且各有優點。
安裝使用 sharpkeys 來將 Del 鍵 remap成 'Caps Lock', 'Scr Lock',
sharpkeys 下載點
https://github.com/randyrants/sharpkeys
sharpkeys 中文介紹
https://www.azofreeware.com/2015/03/sharpkeys.html
參考 Edit the Windows Registry Key Mapping
http://www.wordstar.org/index.php/29-swap-ctrl-caps-lock-keys/92-windows-registry-edit-keymap
regedit 的 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
Scancode Map
https://www.ghacks.net/2010/06/06/the-ultimate-guide-to-keyboard-remapping/