From 4b46d39d8e6ee5cbc4d016414c1923ee795d7c82 Mon Sep 17 00:00:00 2001 From: ayntgl <90600421+ayntgl@users.noreply.github.com> Date: Fri, 15 Oct 2021 22:34:27 +0400 Subject: [PATCH] Clear message InputField text on Escape event key (#72) --- ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui.go b/ui.go index e9dd96f..3237f6c 100644 --- a/ui.go +++ b/ui.go @@ -371,6 +371,7 @@ func onMessageInputFieldInputCapture(e *tcell.EventKey) *tcell.EventKey { text = messageInputField.GetText() + text messageInputField.SetText(text) case tcell.KeyEscape: + messageInputField.SetText("") messageInputField.SetTitle("") selectedMessage = 0 }