From 129ce88f38c232d065ac6aa5d314efd27f0c66cf Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 31 Jan 2021 17:41:24 -0500 Subject: [PATCH] Add ability to back out of end-of-deck menu --- lightcards/display.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lightcards/display.py b/lightcards/display.py index 4599491..39e67ef 100755 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -118,6 +118,9 @@ class Display(): self.menu_print("Stars only!") else: self.menu_print("ERR: None are starred!", err=True) + elif key in ["h", "KEY_LEFT"]: + self.obj.setIdx(len(self.stack) - 1) + self.get_key() elif key == "r": self.get_key() -- 2.39.2