From e494d7811dc350f1857f44099b848af6739ffd3f Mon Sep 17 00:00:00 2001 From: ayn2op Date: Sat, 21 Jan 2023 16:43:09 +0530 Subject: [PATCH] feat: focus MessagesText widget on cancel --- attachment_image.go | 1 + 1 file changed, 1 insertion(+) diff --git a/attachment_image.go b/attachment_image.go index fcf46dc..84f257f 100644 --- a/attachment_image.go +++ b/attachment_image.go @@ -49,6 +49,7 @@ func newAttachmentImage(a discord.Attachment) (*AttachmentImage, error) { func (ai *AttachmentImage) onInputCapture(event *tcell.EventKey) *tcell.EventKey { if event.Name() == cfg.Keys.Cancel { app.SetRoot(mainFlex, true) + app.SetFocus(messagesText) return nil }