Returns True if one of the specified keys are pressed
(key)
| 1493 | |
| 1494 | @staticmethod |
| 1495 | def _is_quit_shortcut(key): |
| 1496 | """Returns True if one of the specified keys are pressed""" |
| 1497 | return (key == K_ESCAPE) or (key == K_q and pygame.key.get_mods() & KMOD_CTRL) |
| 1498 | |
| 1499 | |
| 1500 | # ============================================================================== |