mirror of
https://github.com/pdxlocations/contact.git
synced 2026-07-06 09:51:34 +02:00
Handle backspace character
Co-authored-by: pdxlocations <117498748+pdxlocations@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user