lk201emu icon indicating copy to clipboard operation
lk201emu copied to clipboard

Thanks and suggestion for function keys > 12

Open snhirsch opened this issue 2 years ago • 3 comments

First of all, thanks for your efforts in developing these devices. I built a USB converter and everything went quite well.

I do have a suggestion / wish-list item: Why not map Shift + Fn to F(n+10)? That's somewhat common in both the Windows and Linux ecosystems. Rather than move to the bottom right for, e.g. F17 one could just do Shift+F7. Is there a technical reason that would prevent this from working?

snhirsch avatar Dec 22 '23 18:12 snhirsch

That would be somewhat tricky. Keep in mind that this is basically a scan code translator. So when you press F7 it sends the keycode for that; when you press a shift key it sends the keycode for shift. The converter doesn't care about the shift state when it generates the keycodes; the host driver is responsible for that aspect. While it may be that shifted function keys have no standard meaning in typical DEC products, there certainly isn't anything that prevents that from being done, at least not in systems where that processing is in software (like the DEC Pro).

pkoning2 avatar Dec 22 '23 20:12 pkoning2

Ah - ok. I definitely see your point. Didn't realize the converter held no state! But as you say that is definitely the safest and most compatible approach.

snhirsch avatar Dec 22 '23 21:12 snhirsch

It does have some state, because it has to send "all up" when the last of the up/down keys is released, rather than the keycode for that key. But other than that the coding of the keys does not depend on shift or other modifier state.

pkoning2 avatar Dec 23 '23 19:12 pkoning2