From 8a4d4ca557fa1f3ac6508345ff1ff61a9c284fd5 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 18 Oct 2022 23:37:23 -0600 Subject: [PATCH] Fix sheet label escape key --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 55dd55d..977364f 100755 --- a/main.py +++ b/main.py @@ -744,7 +744,7 @@ while True: stdscr.clrtoeol() stdscr.addstr(10, 4, 'Enter your contact info: ' + label_material_contact) stdscr.clrtoeol() - stdscr.addstr(23, 1, '[RETURN] Next [ESC] Cancel') + stdscr.addstr(23, 1, '[RETURN] Print [ESC] Cancel') elif label_material_name: stdscr.addstr(8, 4, '') stdscr.clrtoeol() @@ -1062,6 +1062,7 @@ while True: if c == curses.KEY_BACKSPACE: label_material_contact = label_material_contact[:-2] + '_' elif c == KEY_ESCAPE: + label_material_name = '' label_material_contact = '' stdscr.erase() elif c == KEY_ENTER: @@ -1080,6 +1081,7 @@ while True: label_material_name = label_material_name[:-2] + '_' elif c == KEY_ESCAPE: label_material_name = '' + label_material_contact = '' stdscr.erase() elif c == KEY_ENTER: if len(label_material_name) > 1: