MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / _is_quit_shortcut

Method _is_quit_shortcut

PythonAPI/examples/no_rendering_mode.py:1495–1497  ·  view source on GitHub ↗

Returns True if one of the specified keys are pressed

(key)

Source from the content-addressed store, hash-verified

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# ==============================================================================

Callers 1

_parse_eventsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected