From: Armaan Bhojwani Date: Sun, 31 Jan 2021 22:37:43 +0000 (-0500) Subject: Fix backwards arrow keys X-Git-Tag: v0.4.0~10 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=e4f3cb023becf5310e46f2c22722466e9e8ace7b Fix backwards arrow keys No, the other left! --- diff --git a/lightcards/display.py b/lightcards/display.py index 5257c47..4599491 100755 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -205,11 +205,11 @@ class Display(): key = self.win.getkey() if key == "q": sys.exit(0) - elif key in ["l", "KEY_LEFT"]: + elif key in ["l", "KEY_RIGHT"]: self.obj.forward(self.stack) self.obj.setSide(0) self.disp_card() - elif key in ["h", "KEY_RIGHT"]: + elif key in ["h", "KEY_LEFT"]: self.obj.back() self.obj.setSide(0) self.disp_card()