diff --git a/widgets/compose.go b/widgets/compose.go index eca7684..0c26d07 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -617,6 +617,12 @@ func (c *Composer) Event(event tcell.Event) bool { func (c *Composer) MouseEvent(localX int, localY int, event tcell.Event) { c.Lock() defer c.Unlock() + for _, e := range c.focusable { + he, ok := e.(*headerEditor) + if ok && he.focused { + he.focused = false + } + } c.grid.MouseEvent(localX, localY, event) for i, e := range c.focusable { he, ok := e.(*headerEditor)