Aleph-One-Marathon / alephone

Aleph One is the open source continuation of Bungie’s Marathon 2 game engine.
https://alephone.lhowon.org/
GNU General Public License v3.0
621 stars 100 forks source link

Preventing Command key from triggering window/app close when it is bound to an action #488

Open Iritscen opened 1 month ago

Iritscen commented 1 month ago

Currently, if the Cmd key is bound to an action (e.g. secondary trigger) and it is pressed at the same time as the W or Q key during gameplay, Marathon will instantly quit. When the "Are you sure you want to cancel the game in progress?" dialog appears, the current key-down events instantly pass through it before the player can even react, thus closing the window, the game, and even other windows/applications on the Mac (after the game quits, the Cmd-Q/W keystrokes continue sending rapid-fire close messages to whatever becomes active next). Is it possible to remove the menu shortcuts for "Close (⌘W)" and "Quit Marathon (⌘Q)" whenever the Cmd key is in use as a player binding?