Key is Scancode 0x2B, or as a VKEY code: VK_OEM_5 (0xDC)
Javascript says the key I pressed was keycode 220 (same number as 0xDC) or key "\".
I had Tandy 1000 as the selected machine. When I look at the onscreen keyboard, I don't see a backslash key underneath backspace, but I do see one next to left shift. For keyboards that have the alternate backslash there, it is listed as having a scancode of 0x56 and a VKEY code of VK_OEM_102 (0xE2). (I haven't actually checked information specific to the actual Tandy keyboard)
Not just the OSD keyboard, my real backslash key is also pressing backspace. You can't do your classic DOS commands like "cd\" without a working backspace key.
It's a US keyboard (happens to be a laptop). I've already named the scancodes and VK codes in the parent post. Browser is Firefox.
Backslash works fine if you have chosen to emulate the PC or PC XT. For PCJr, no keystroke appears at all (it does not act as backspace). For Tandy 1000, it acts as backspace. You get the same result whether you use the real backslash key or the backslash key from the on-screen keyboard.
Thanks. This should be fixed for Tandy 1000 now. On PCjr there is no backslash key, you have to type a backspace using alt + /, so I will need to define a macro that does that for you.
The Tandy 1000 will need its own OSD since the tandy keyboard differs from the Model F in significant ways. You'll notice that if you type shift-backslash on the current model-F based OSD you'll get a 7 instead of the expected |. Because backslash is on numpad 7 on the Tandy.
Comments
Mysteriously, backslash has been mapped to backspace for some reason.
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
I don't think Backspace as a key was standard internationally until 1994. Apple still doesn't use it, just Delete.
This is about early IBM PCs, not apple computers. And the non-working key is the Backslash key \ , not the backspace key.
Old terminals had this shenanigans going on too. Backspace was not backspace and so on
What keyboard layout are you using? I can't reproduce on a US layout.
Key is Scancode 0x2B, or as a VKEY code: VK_OEM_5 (0xDC)
Javascript says the key I pressed was keycode 220 (same number as 0xDC) or key "\".
I had Tandy 1000 as the selected machine. When I look at the onscreen keyboard, I don't see a backslash key underneath backspace, but I do see one next to left shift. For keyboards that have the alternate backslash there, it is listed as having a scancode of 0x56 and a VKEY code of VK_OEM_102 (0xE2). (I haven't actually checked information specific to the actual Tandy keyboard)
Yeah the OSD is only the Model F and the Tandy has some difference so the OSD keyboard may not work quite right with the Tandy.
I have to make all new pixel-art for a Tandy 1000 keyboard and PCjr keyboard. Fun
Not just the OSD keyboard, my real backslash key is also pressing backspace. You can't do your classic DOS commands like "cd\" without a working backspace key.
I need to know what keyboard layout you're using. If it is not a standard US keyboard it will need a mapping
It's a US keyboard (happens to be a laptop). I've already named the scancodes and VK codes in the parent post. Browser is Firefox.
Backslash works fine if you have chosen to emulate the PC or PC XT. For PCJr, no keystroke appears at all (it does not act as backspace). For Tandy 1000, it acts as backspace. You get the same result whether you use the real backslash key or the backslash key from the on-screen keyboard.
Thanks. This should be fixed for Tandy 1000 now. On PCjr there is no backslash key, you have to type a backspace using alt + /, so I will need to define a macro that does that for you.
The Tandy 1000 will need its own OSD since the tandy keyboard differs from the Model F in significant ways. You'll notice that if you type shift-backslash on the current model-F based OSD you'll get a 7 instead of the expected |. Because backslash is on numpad 7 on the Tandy.
Dealing with this stuff is tons of fun