]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/display.py
Add quit_key option
[lightcards.git] / lightcards / display.py
index e91fed1a302db23d1626464d44c869df0c0194b9..bce533a690e7054ebc75446f3c0de1161685888c 100644 (file)
@@ -474,7 +474,7 @@ class Display:
         while True:
             self.check_size()
             key = self.win.getkey()
-            if key == "q":
+            if key == self.config["quit_key"]:
                 self.leave()
             elif key in self.config["card_prev"]:
                 self.obj.back()