Openra: macOS: suppress shortcut cmd+Q

Created on 24 Feb 2020  路  4Comments  路  Source: OpenRA/OpenRA

The default key combination for terminating applications under macOS is cmd+Q. In OpenRA, the key combination cmd+ combines units into a group.
This can lead to a premature end of the game.

In the hotkey settings the key combination for cmd+Q can be assigned, but it will always terminate the application.

The key combination should be intercepted to prevent the application from being terminated without asking. Alternatively, a dialog should be displayed asking if you really want to quit the application.

IdeWishlist MacOS X Usability

Most helpful comment

@drunsinn I'm thinking of having a go at making this happen. My thoughts are that perhaps Cmd + Q should only be blocked if you're in a game or map editor, etc.. Or to look at it the other way around, Cmd + Q would still work if you're in the menus.

All 4 comments

@drunsinn I'm thinking of having a go at making this happen. My thoughts are that perhaps Cmd + Q should only be blocked if you're in a game or map editor, etc.. Or to look at it the other way around, Cmd + Q would still work if you're in the menus.

I think that would be a good solution!
When the user is not in a game there is no progress that could be lost by accidentally exiting the application . 馃憤

I've provided an implementation in pull request #18438

The pull request implementing this was merged. In the end it was easier to just always suppress Cmd + Q

Was this page helpful?
0 / 5 - 0 ratings