Ctrl+q closes program instead of marking mail as read with Outlook shortcuts


Control+q causes Mailspring to close instead of mark mail as read with Outlook shortcuts. Other Outlook shortcuts work as expected (eg. ctrl+u marks as unread).

I have checked the logs (eg. “user\AppData\Roaming\Mailspring\mailsync-f50f4c66.log”) and there seems to be no evidence of the program either closing gracefully or an exception.

I can try running it with debug flags but it requires me to log into my accounts again. Let me know if necessary

To Reproduce…

Steps to reproduce the behavior:

  1. Set keyboard shortcuts to Outlook
  2. Mark message as unread with ctrl+q

Expected Behavior

Mail should be marked as read


  • OS and Version: Windows 10 2004
  • Mailspring Version: 1.7.8

Additional Context

Is it possibly to do with the Outlook template still using “ctrl” instead of “mod” in the keymap json here: Mailspring/Outlook.json at 4b6c24fefa270d29ee5733d66f0885aae4e6e4e1 · Foundry376/Mailspring · GitHub?

 "core:focus-item": "ctrl+o",
  "core:mark-as-read": "ctrl+q",
  "core:mark-as-unread": "ctrl+u",
  "core:star-item": "ctrl+shift+g",

Should all be changed I think

(Originally posted by fionnan-r on GitHub.)

My guess is that this is a MacOS shortcut that’s unintentionally taking effect on Windows too.

Apps on MacOS use Cmd+Q to quit. Since non-MacOS platforms generally don’t have a Cmdkey, cross-platform apps usually swap Cmd for Ctrl on non-MacOS platforms.


That sounds like you found the issue.
But when get it fixed? Do you know that?

Because this topic is now open a while and when the cmd is simply mapped to ctrl then Mailspring should also have an Application close section in the shortcuts settings.
In this way I could overwrite it i.e. to Ctrl+W on Windows/Linux.