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
1 changed files with 4 additions and 1 deletions
|
@ -177,7 +177,10 @@ func (c *Composer) Bindings() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Composer) Event(event tcell.Event) bool {
|
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) {
|
func (c *Composer) Focus(focus bool) {
|
||||||
|
|
Loading…
Reference in a new issue