Hello, Sorry to be late on this.
This could be partly do-able with FD-KEYB, but would need lots of testing. It has two parts, make Shift behave as space, and space behave as shift. I'll give you possibilities for you to play with it. I suggest that you pick your favourite keyboard layout (KEY file) and re-compile using these hints and see how to it works: (1) Make shift behave as space. I suggest that you create an entry for scancodes 2AH (left shift) and 36H (right shift) to produce a character number 32 in your KEY section. I am not sure if this would make SHIFT no longer work as SHIFT. (2) Make space behave as shift This can't be done completely, as no current commands in KEYB will turn BIOS' flags for caps on and off. But you can create a "user locking key", whose status is tracked by KEYB, and then define the behaviour of your keyboard on the status of this key (a new plane). In other words, issue a !On and !Hn command for space. Then create a new plane for UserKeyn Finally write a new "column" for this plane for the whole of your keyboard (how every key should behave), that should be the same behaviour as CapsLock There are complications: according to your description, releasing the space key should do two things, release character 32 and the !Hn command (thus a string). Also careful if you use a Japanese keyboard, because the Kana-lock uses this trick too (you need to use a different user-defined lock key). Best, Aitor El dom, 7 sept 2025 a las 13:21, Thomas Desi via Freedos-user (< [email protected]>) escribió: > In AHK (windows) or Karabiner*) (Mac) there is a „complex modification“ of > the Space Bar’s behaviour possible: > > =============================================================== > Change Space Bar to Shift. (Post space bar if pressed alone.) > =============================================================== > > Would it be possible to interfere with the (Free)DOS’s Keyboard to create > a similar behaviour in DOS?? > > Bret Johnson has exentsively worked on keyboard modifications, as I have > some of his software here, but seemingly there wasn’t a solution at the > time (1980/1990ies) available. I know that nobody would program something > alike TODAY, but I keep trying to „investigate“ - I don’t even know what it > would take to intercept the space-bars status’ to divert into an > „if“-state. (See code below.) > Any ideas somebody? > > PS: The goal is it, to get rid of the shift keys (left AND right) and > shift keys only using together with the space bar key. Or other way round: > Immagine a Shift key pressed alone inserts a „space“, else works as the > SHIFT key as normally… > > Thomas > > > > ________ > *) the json files looks like this: > > { > "description": "Change spacebar to left_shift. (Post spacebar if > pressed alone)", > "enabled": false, > "manipulators": [ > { > "from": { > "key_code": "spacebar", > "modifiers": { "optional": ["any"] } > }, > "to": [{ "key_code": "left_shift" }], > "to_if_alone": [{ "key_code": "spacebar" }], > "type": "basic" > } > ] > } > > _______________________________________________ > Freedos-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freedos-user >
_______________________________________________ Freedos-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-user
