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:
parent
038bf711fa
commit
8534720e72
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue