|
Post by timrude on Jun 8, 2022 15:59:56 GMT 1
I need to remap the numeric keypad + and - keys to be treated as + and - on the regular keyboard (not keypad).
Keypad - scancode = 4a2d Keypad + scancode = 4e2b
Regular - scancode = 02cd Regular + scancode = 0d2b
I've tried in config.txt:
KEYCODE = 4a2d=02cd KEYCODE = 4e2b=0d2b
and
KEYCODE = 4a2d=02cd 4e2b=0d2b
Neither works and vDos won't load with either one.
|
|
|
Post by Jos on Jun 8, 2022 16:45:48 GMT 1
Some need the decimal point at the Keypad treated as a comma and vice versa, but only in DOS programs.
So the KEYCODE directive, you can only specify one scancode combination and KEYCODE only once.
Jos
|
|
|
Post by timrude on Jun 8, 2022 17:54:42 GMT 1
Is there a technical reason for this limitation of being able to only remap one single key?
|
|
|
Post by Jos on Jun 8, 2022 18:13:57 GMT 1
The configuration parser allows directives only once since duplicates make no sense. So the single KEYCODE=.
The parser could process multiple scancode=scancode pairs and store those in an array. But KEYCODE= is mostly a more flexible form of something like SWAPNPCP=ON, swap Numpad comma for decimal point and vice verse. Don’t recall anyone requesting for more. And you can remap keys with Window utilities like KbdEdit.
Jos
|
|
|
Post by timrude on Jun 8, 2022 18:38:40 GMT 1
It would be very handy for the KEYCODE directive parser to handle more than one scancode=scancode pair. In my case, I'm using vDOS to run DataPerfect, and DP has the incredibly annoying "feature" of treating the keypad + and - keys as screen-down and screen-up keys. I can't count how many times I've been trying to enter a phone number or something with a + or - in it and have it instead jump the cursor.
You're correct that I could use a Windows app to globally remap the keys, but I don't like to apply a global patch to fix a single program. It would be much more elegant to be able to handle the remapping in the vDOS instance being used for running DP, while leaving the rest of the system alone.
|
|
|
Post by Jos on Jun 8, 2022 18:53:14 GMT 1
If more come with such a request, KEYCODE= could be extended the next version. For now you either have to remap the + or – key, or use a Windows utility.
Jos
|
|
|
Post by muescha on Mar 20, 2024 23:59:40 GMT 1
|
|
|
Post by Jos on Mar 21, 2024 23:21:32 GMT 1
For now this seems a request without practical use.
Jos
|
|