From 25bee64767147f43a5f44c54791263fca5520934 Mon Sep 17 00:00:00 2001 From: ppizarror Date: Thu, 15 Aug 2019 15:46:57 +0100 Subject: [PATCH] Fix back event --- pygameMenu/menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygameMenu/menu.py b/pygameMenu/menu.py index ea1581b4..75e2aa4b 100755 --- a/pygameMenu/menu.py +++ b/pygameMenu/menu.py @@ -824,7 +824,7 @@ def _main(self, events=None): elif event.key == _ctrl.KEY_MOVE_UP: self._select(self._actual._index + 1) self._sounds.play_key_add() - elif event.key == _ctrl.KEY_BACK and self._actual._prev is not None: + elif event.key == _ctrl.KEY_BACK and self._top._prev is not None: self._sounds.play_close_menu() self.reset(1) elif event.key == _ctrl.KEY_CLOSE_MENU and not self._closelocked: