summary refs log tree commit diff stats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index bdf94bd..92fc06e 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -124,6 +124,7 @@ func (aerc *Aerc) Event(event tcell.Event) bool {
 
 	switch event := event.(type) {
 	case *tcell.EventKey:
+		aerc.statusline.Expire()
 		aerc.pendingKeys = append(aerc.pendingKeys, config.KeyStroke{
 			Key:  event.Key(),
 			Rune: event.Rune(),
@@ -231,8 +232,16 @@ func (aerc *Aerc) focus(item libui.Interactive) {
 		aerc.focused.Focus(false)
 	}
 	aerc.focused = item
+	interactive, ok := aerc.tabs.Tabs[aerc.tabs.Selected].Content.(ui.Interactive)
 	if item != nil {
 		item.Focus(true)
+		if ok {
+			interactive.Focus(false)
+		}
+	} else {
+		if ok {
+			interactive.Focus(true)
+		}
 	}
 }