Răsfoiți Sursa

feat: focus MessagesText widget on cancel

ayn2op 3 ani în urmă
părinte
comite
e494d7811d
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      attachment_image.go

+ 1 - 0
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
 	}