I frequently accidentally hit Ctrl-Z and exit ScummVM unintentionally without saving my progress, particular when playing Quest for Glory games. The keyboard info tab on the ScummVM launcher gives a few ways to change keyboard controls, but I do not know how to use these instructions. For example, I cannot find the configuration file. I am using ScummVM version 2.9.0, the latest. Please help me.
Thank you.
Please Tell Me How to Disable the Ctrl-Z Option to Quit
Moderator: ScummVM Team
-
- Posts: 35
- Joined: Wed Nov 29, 2023 3:30 pm
Re: Please Tell Me How to Disable the Ctrl-Z Option to Quit
You can change or remove shortcuts in the Keymap tab of the Global Options and Game Options. See https://docs.scummvm.org/en/v2.9.0/sett ... ymaps.html
- Praetorian
- ScummVM Developer
- Posts: 927
- Joined: Tue May 08, 2007 8:54 am
- Location: Greece
- Contact:
Re: Please Tell Me How to Disable the Ctrl-Z Option to Quit
It looks like that the Ctrl+Z shortcut is mapped to the Quit action under "Global Options" for ScummVM Keymaps.
I am not sure if the game itself also has a Ctrl+Z "quit" shortcut (hardcoded), but my current guess is that it has not.
So, as criezy wrote, you can change the shortcut in the Keymap tab of the Global Options.
However, there are a few things to note here:
- If you just clear the keymap for "Quit" and apply the settings, the keymap will auto-revert to its defaults (so Ctrl+Z and Alt+F4 for Windows) even if it won't show that until you restart ScummVM. This is kind of unintuitive behavior, and I think it's a known keymapper issue, but not sure if it's intended or too complicated to fix.
- So you have to add another keymap for ScummVM to store this new shortcut for the Quit action. Eg. I tested with "Ctrl+\" which seems to work ok.
- Even if the "Alt+F4" shortcut is removed from that keymap, it will still work as a force quit option, probably because this is the Windows' standard way of closing an app/window. Also, I don't think you *can* manually add the "Alt+F4" shortcut to a mapping, since entering the shortcut will just immediately close ScummVM.
I am not sure if the game itself also has a Ctrl+Z "quit" shortcut (hardcoded), but my current guess is that it has not.
So, as criezy wrote, you can change the shortcut in the Keymap tab of the Global Options.
However, there are a few things to note here:
- If you just clear the keymap for "Quit" and apply the settings, the keymap will auto-revert to its defaults (so Ctrl+Z and Alt+F4 for Windows) even if it won't show that until you restart ScummVM. This is kind of unintuitive behavior, and I think it's a known keymapper issue, but not sure if it's intended or too complicated to fix.
- So you have to add another keymap for ScummVM to store this new shortcut for the Quit action. Eg. I tested with "Ctrl+\" which seems to work ok.
- Even if the "Alt+F4" shortcut is removed from that keymap, it will still work as a force quit option, probably because this is the Windows' standard way of closing an app/window. Also, I don't think you *can* manually add the "Alt+F4" shortcut to a mapping, since entering the shortcut will just immediately close ScummVM.
Re: Please Tell Me How to Disable the Ctrl-Z Option to Quit
Another option that can be useful to avoid closing ScummVM by mistake is the "Ask for confirmation on exit" in the GUI tab of the Global Options.