fixed esc not quitting application
This commit is contained in:
parent
fba570e432
commit
4902d72ebc
@ -78,6 +78,7 @@ class Surface(pygame.Surface):
|
||||
self.quit = True
|
||||
if event.type == pygame.KEYDOWN:
|
||||
if event.key == pygame.K_ESCAPE:
|
||||
self.running = False
|
||||
self.quit = True
|
||||
if event.type == pygame.MOUSEBUTTONDOWN:
|
||||
self.mouse_handler.active = True
|
||||
|
Loading…
Reference in New Issue
Block a user