Anonymous avatar Anonymous committed eee23a5

Bugfix ctrl-Q on Windows

Comments (0)

Files changed (1)

ProduceDefendWin.py

                 elif (pygame.key.get_mods() == 1024): # command key
                     if (event.key == 113):   # q  -- so Apple-Q quits like other programs on OS X
                         sys.exit()
-# NEEDS BUGFIX
-                elif event.key == K_q and (pygame.key.get_mods() == 64 or pygame.key.get_mods() == 128): # ctrl-q like most games
+                elif event.key == K_q and pygame.key.get_mods() & KMOD_CTRL: # ctrl-q like most games
                     sys.exit()
                     
                 if enviro.cheatKeys:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.