Skip to content

Commit

Permalink
Fix back event
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Aug 15, 2019
1 parent 37d4ae6 commit 25bee64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygameMenu/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 25bee64

Please sign in to comment.