logoalt Hacker News

Dwedittoday at 5:17 AM5 repliesview on HN

Mysteriously, backslash has been mapped to backspace for some reason.


Replies

rrr_oh_mantoday at 8:12 PM

That's keyboard code [1] vs. Keyboard key [2].

[1] Physical location of a key https://w3c.github.io/uievents/#keys-codevalues

[2] Mapping of a key https://w3c.github.io/uievents/#keys-keyvalues

The naming is terrible and I have to look it up every single time

GloriousCowtoday at 6:05 PM

What keyboard layout are you using? I can't reproduce on a US layout.

show 1 reply
datakantoday at 12:31 PM

I don't think Backspace as a key was standard internationally until 1994. Apple still doesn't use it, just Delete.

show 1 reply
unixherotoday at 5:49 AM

Old terminals had this shenanigans going on too. Backspace was not backspace and so on