
答案1
xev
告訴我 Enter 是鍵碼 36,所以
# just to be sure, set any other key to Return! (here - (minus) mapped to Return
xmodmap -e 'keycode 61 = Return'
# not change keycode of Return to backspace
xmodmap -e 'keycode 36 = BackSpace'
應該管用。只需確保在登入時調用該命令即可。或者,/usr/share/X11/xkb/symbols
如果您更願意的話,可以修改佈局的符號檔案。
重要的:確保您有另一種發送 Return 鍵的方式,否則您將無法做到太多(甚至將鍵碼 36 恢復為 Return 鍵而無需 Return 鍵也可能證明是不可能的...)。上面我將「減號」鍵映射到 Return。