Warning before closing
With autosaving documents in cloud, when I accidentally hit Cmd+Q it closes instantly the XD app and all opened documents without any warning. It is annoying because I have to reopen all previously opened documents.
Google Chrome has this option that warns you to press Cmd+Q twice to close the Chrome (in case you hit it accidentally, which is not that difficult having W, that closes single document, sitting right next to Q). It also gives you the possibility to reopen all previously opened tabs, this might be useful too.
Pawel Psztyc commented
I can't even count how many times I accidentally quit the application through the `cmd+q` shortcut while I intended to press `cmd + 1`. Visual Studio Code recently introduced very useful configuration option to ask before quitting when pressing `cmd + q`. I would like to see it in XD as well (in all apps actually).
The way how it works in VSCode is the following (and I think it's great approach). When pressing `cmd + q` the app shows dialog asking the user to confirm quitting the app. There's also a checkbox saying "Don't ask me again" (or something like that). Additionally in the application configuration there's an option to select whether the app should ask the user before quitting through `cmd+q`.
This only works with the keyboard shortcut. It does not affect other means to close the app (quit dot, closing from the Dock).