Score:0

How to permanently switch "backspace" and "Enter" keys?

in flag

i want to swap the functions of Enter key and backspace . i know the key code of both of them

"Enter" = 117; "Backspace" = 101;

possible ways is by using the dconf editor by changing the options of xkb, but I don't know the name of the rules/options .

Score:0
ph flag

xev tells me that enter is keycode 36, so

# 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'

should work. Just make sure the command is called at login. Alternatively, you can modify the symbols file of your layout in /usr/share/X11/xkb/symbols if you are more inclined to to that.

IMPORTANT: make sure you have another way of sending the Return key, otherwise you won't be able to to much (even revert the keycode 36 back to Return without a Return key might prove impossible...). Above I mapped the "minus" key to Return.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.