Please Tell Me How to Disable the Ctrl-Z Option to Quit

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
ArthurWalden
Posts: 35
Joined: Wed Nov 29, 2023 3:30 pm

Please Tell Me How to Disable the Ctrl-Z Option to Quit

Post by ArthurWalden »

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.
User avatar
criezy
ScummVM Developer
Posts: 980
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: Please Tell Me How to Disable the Ctrl-Z Option to Quit

Post by criezy »

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
User avatar
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

Post by Praetorian »

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.
User avatar
criezy
ScummVM Developer
Posts: 980
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: Please Tell Me How to Disable the Ctrl-Z Option to Quit

Post by criezy »

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.
Post Reply