|
@@ -49,6 +49,7 @@ func newAttachmentImage(a discord.Attachment) (*AttachmentImage, error) {
|
|
|
func (ai *AttachmentImage) onInputCapture(event *tcell.EventKey) *tcell.EventKey {
|
|
func (ai *AttachmentImage) onInputCapture(event *tcell.EventKey) *tcell.EventKey {
|
|
|
if event.Name() == cfg.Keys.Cancel {
|
|
if event.Name() == cfg.Keys.Cancel {
|
|
|
app.SetRoot(mainFlex, true)
|
|
app.SetRoot(mainFlex, true)
|
|
|
|
|
+ app.SetFocus(messagesText)
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|