feat: focus MessagesText widget on cancel
This commit is contained in:
parent
794081d816
commit
e494d7811d
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue