From e6371744b346217a9348a694462354ae644fc032 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sun, 11 May 2014 19:06:20 +0200 Subject: [PATCH] Keydown --- naja/scenes/menu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/naja/scenes/menu.py b/naja/scenes/menu.py index 01fe7e2..c2e9a16 100644 --- a/naja/scenes/menu.py +++ b/naja/scenes/menu.py @@ -23,10 +23,10 @@ class MenuScene(Scene): colour='white')) def handle_event(self, ev): - if ev.type == pgl.KEYUP and ev.key in (pgl.K_q, pgl.K_ESCAPE): + if ev.type == pgl.KEYDOWN and ev.key in (pgl.K_q, pgl.K_ESCAPE): QuitGameEvent.post() return - if ev.type == pgl.KEYUP and ev.key is pgl.K_RETURN: + if ev.type == pgl.KEYDOWN and ev.key is pgl.K_RETURN: credits_menu = CreditsScene() SceneChangeEvent.post(credits_menu) return -- 2.34.1