From d62ec09eea1193f5fc0c747f7b2aff04d860c907 Mon Sep 17 00:00:00 2001 From: Russell Schmidt Date: Tue, 10 Jun 2025 12:19:03 -0500 Subject: [PATCH] Fix enter not clearing input Similar to 981d72e, pressing enter wasn't clearing the input field. --- contact/ui/contact_ui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contact/ui/contact_ui.py b/contact/ui/contact_ui.py index 19624a0..e3c7a66 100644 --- a/contact/ui/contact_ui.py +++ b/contact/ui/contact_ui.py @@ -139,6 +139,7 @@ def main_ui(stdscr: curses.window) -> None: elif char in (chr(curses.KEY_ENTER), chr(10), chr(13)): handle_enter(input_text) + input_text = "" elif char == chr(20): # Ctrl + t for Traceroute handle_ctrl_t(stdscr)