From 3a7e0b4c82cff06b4bdb980544c1c1cc6ef45c33 Mon Sep 17 00:00:00 2001 From: ayntgl Date: Wed, 19 Jan 2022 22:05:20 +0400 Subject: [PATCH] Change focus back to messages TextView when Escape is pressed --- ui/handlers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/handlers.go b/ui/handlers.go index fbf85a1..c8dad61 100644 --- a/ui/handlers.go +++ b/ui/handlers.go @@ -220,7 +220,9 @@ func onMessagesTextViewInputCapture(app *App, e *tcell.EventKey) *tcell.EventKey AddItem("Copy Content", "", 'c', nil). AddItem("Copy ID", "", 'i', nil). SetDoneFunc(func() { - app.SetRoot(app.MainFlex, true) + app. + SetRoot(app.MainFlex, true). + SetFocus(app.MessagesTextView) }). SetSelectedFunc(func(_ int, mainText string, _ string, _ rune) { onMessageActionsListSelected(app, mainText, m)