When reviewing an email don't pass characters on

This stops characters being passed to the focused box when reviewing an
email. To edit headers the user should go back to the edit page.
This commit is contained in:
Jeffas 2019-07-16 16:33:47 +01:00 committed by Drew DeVault
parent 038bf711fa
commit 8534720e72
1 changed files with 4 additions and 1 deletions

View File

@ -177,7 +177,10 @@ func (c *Composer) Bindings() string {
}
func (c *Composer) Event(event tcell.Event) bool {
return c.focusable[c.focused].Event(event)
if c.editor != nil {
return c.focusable[c.focused].Event(event)
}
return false
}
func (c *Composer) Focus(focus bool) {