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

View file

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