Handle backspace character

Co-authored-by: pdxlocations <117498748+pdxlocations@users.noreply.github.com>
This commit is contained in:
Russell Schmidt
2025-01-21 17:13:46 -06:00
committed by GitHub
parent 6384777bb6
commit 1c0704b940
+1 -1
View File
@@ -371,7 +371,7 @@ def main_ui(stdscr):
entry_win.clear()
# entry_win.refresh()
elif char in (curses.KEY_BACKSPACE, 127):
elif char in (curses.KEY_BACKSPACE, chr(127)):
if input_text:
input_text = input_text[:-1]
y, x = entry_win.getyx()