VOGONS


First post, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie

One of the newest additions to SVN enables the Cmd-Q keystroke under OS X, which shuts down DOSBox immediately. Cmd-Q is the "quit" keystroke for all OS X applications.

However, under every other OS X application that I have tried, Cmd-Q only shuts down the application immediately if there is no unsaved document open in the application. If an unsaved document is open, then Cmd-Q brings up a dialog asking "Do you want to Quit?" or some similar message.

As implemented in SVN, Cmd-Q shuts down DOSBox immediately without any dialog. (At least that's way it seems to work for me.) For my own application (which is NOT game-related) this is slightly dangerous, because it means that a user can lose work. I think it might be dangerous for gaming also, since someone who presses Cmd-Q by mistake might lose all the progress made in a game during the current session.

I know I can build my own application without the lines of code that enable Cmd-Q. But is there any hope that it might be changed to bring up a "Do you really want to quit" dialog instead of shutting down immediately? I think that this might be preferred by users who run games under DOSBox in OS X.

Reply 1 of 4, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The behaviour is similar to our ctrl-f9 quit key, although that one can be unmapped, but there is no dos game that wants to use the Cmd key.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 4, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie
Qbix wrote:

The behaviour is similar to our ctrl-f9 quit key, although that one can be unmapped, but there is no dos game that wants to use the Cmd key.

Very true. I was thinking about the possibility that someone playing a game might hit the Cmd-Q key by mistake when trying to exit the game cleanly by pressing Ctrl-Q (if there really ARE any games that use Ctrl-Q to exit), and then not having any way to avoid the immediate shutdown. As you say, Ctrl-F9 can be unmapped to avoid anything like that.

I won't bother you any longer about this, but I thought it was at least worth asking the question.

Reply 3 of 4, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

I think those games that exit by ctrl-q exit right away too.
Osx users should know better than to use cmd-q. Apps that aren't text editors that create docs or something like that exit directly with cmd-q as well.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 4 of 4, by emendelson

User metadata
Rank Oldbie
Rank
Oldbie
Dominus wrote:

I think those games that exit by ctrl-q exit right away too.
Osx users should know better than to use cmd-q. Apps that aren't text editors that create docs or something like that exit directly with cmd-q as well.

Sounds reasonable to me. I think I may have wasted bandwidth on this one. Cmd-Q is certainly a useful addition.