From 9c7da61ede0a3743b95bc912306f374db4e8fb06 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 30 Jan 2021 22:53:28 -0500 Subject: [PATCH] Remove enter key keybinding to quit --- lightcards/display.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lightcards/display.py b/lightcards/display.py index a4e5626..4dab9e1 100755 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -2,9 +2,6 @@ # Armaan Bhojwani 2021 import curses -import os - -from .deck import Status def disp_bar(stdscr, stack, headers, obj): @@ -35,7 +32,7 @@ def disp_menu(stdscr, stack, headers, idx): "[r]estart, [s]tarred only, [u]nstar all and restart, [q]uit") while True: key = stdscr.getkey() - if key == "q" or key == os.linesep: + if key == "q": exit(0) elif key == "r": idx.setIdx(0) @@ -80,7 +77,7 @@ def get_key(stdscr, stack, headers, idx): while True: key = stdscr.getkey() - if key == "q" or key == os.linesep: + if key == "q": exit(0) elif key in ["l", "KEY_LEFT"]: idx.forward(stack) -- 2.39.2