snakeware

Python-based Linux distro for x86-64 and RPi
git clone git://squid-tech.com/snakeware.git
Log | Files | Refs | README

commit c376ca66ba40363305445a429b46bc93ef3de2f1
parent fa1692c818c166e78946319aa5d5de6d857e3dc0
Author: Josh Moore <jxm5210@rit.edu>
Date:   Wed, 27 May 2020 16:51:57 -0400

Change exit hotkey

Diffstat:
Msnakewm/snakewm.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/snakewm/snakewm.py b/snakewm/snakewm.py @@ -61,9 +61,12 @@ class SnakeWM: while running: delta = clock.tick(60) / 1000.0 + + pressed = pygame.key.get_pressed() + for event in pygame.event.get(): if event.type == pygame.KEYDOWN: - if event.key == pygame.K_ESCAPE: + if event.key == pygame.K_ESCAPE and pressed[pygame.K_LALT]: running = False self.MANAGER.process_events(event)