From 5e0a7d57f65da341e8126742444c181b11fef6f4 Mon Sep 17 00:00:00 2001 From: ayntgl Date: Tue, 25 Jan 2022 00:08:24 +0400 Subject: [PATCH] Use correct key name for escape --- ui/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/handlers.go b/ui/handlers.go index 6757939..1fe977c 100644 --- a/ui/handlers.go +++ b/ui/handlers.go @@ -313,7 +313,7 @@ func onMessageInputFieldInputCapture(app *App, e *tcell.EventKey) *tcell.EventKe text = app.MessageInputField.GetText() + text app.MessageInputField.SetText(text) return nil - case "Escape": + case "Esc": app.MessageInputField.SetText("") app.MessageInputField.SetTitle("")