mirror of
https://github.com/pdxlocations/contact.git
synced 2026-08-06 08:53:29 +02:00
fix backspace
This commit is contained in:
@@ -144,7 +144,7 @@ def main_ui(stdscr: curses.window) -> None:
|
|||||||
handle_ctrl_t(stdscr)
|
handle_ctrl_t(stdscr)
|
||||||
|
|
||||||
elif char in (curses.KEY_BACKSPACE, chr(127)):
|
elif char in (curses.KEY_BACKSPACE, chr(127)):
|
||||||
handle_backspace(entry_win, input_text)
|
input_text = handle_backspace(entry_win, input_text)
|
||||||
|
|
||||||
elif char == "`": # ` Launch the settings interface
|
elif char == "`": # ` Launch the settings interface
|
||||||
handle_backtick(stdscr)
|
handle_backtick(stdscr)
|
||||||
@@ -351,6 +351,7 @@ def handle_backspace(entry_win: curses.window, input_text: str) -> None:
|
|||||||
entry_win.addch(" ") #
|
entry_win.addch(" ") #
|
||||||
entry_win.move(y, x - 1)
|
entry_win.move(y, x - 1)
|
||||||
entry_win.refresh()
|
entry_win.refresh()
|
||||||
|
return input_text
|
||||||
|
|
||||||
|
|
||||||
def handle_backtick(stdscr: curses.window) -> None:
|
def handle_backtick(stdscr: curses.window) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user