joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.66k stars 378 forks source link

Trapping special keys while Dosbox-X runs #3953

Open Torinde opened 1 year ago

Torinde commented 1 year ago

It is possible to use the key mapper editor as a workaround for sending special key such as CTRL+ESC, ALT+TAB and others that may be useful when using GUIs or shells on the guest without triggering the host system.

I would like to know if there is a better way to let DosBox-X trap these special keys, so that they do not trigger the typical Windows behaviour of activating a special function on these key events. Some games seem to be successful in this respect and this behaviour is inhibited only if the app crashes or freezes. Is it possible to do the same on DosBox-X?

Originally posted by @dodleh in https://github.com/joncampbell123/dosbox-x/discussions/3877

joncampbell123 commented 1 year ago

DOSBox-X, like most other forks, allows you to capture the mouse and keyboard to the emulator.

The last time I tested with Windows 10 that allowed it to catch the Windows key as well.

I recall when Windows 11 first came out, somehow Windows did not let DOSBox-X capture the Windows key. I'm not sure yet if that's changed.