Commits

Nikhil Marathe committed 4a879a6

Exit Permission denied only on space/return.

Comments (0)

Files changed (1)

src/fileadelphia/states.py

         glMatrixMode(GL_MODELVIEW)
 
     def handle_keypress(self, event, x, y, world):
-        world.pop_state()
+        if event.key == K_RETURN or event.key == K_SPACE:
+            world.pop_state()
         return True
 
 class TransitionState(State):