diff options
Diffstat (limited to 'widgets/compose.go')
-rw-r--r-- | widgets/compose.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index 0c26d070..9b8b30cb 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -958,6 +958,10 @@ func (c *Composer) NextField() { func (c *Composer) FocusEditor(editor string) { c.Lock() defer c.Unlock() + c.focusEditor(editor) +} + +func (c *Composer) focusEditor(editor string) { editor = strings.ToLower(editor) c.focusable[c.focused].Focus(false) for i, f := range c.focusable { @@ -1007,7 +1011,7 @@ func (c *Composer) AddEditor(header string, value string, appendHeader bool) { editor.storeValue() } if value == "" { - c.FocusEditor(c.editors[header].name) + c.focusEditor(c.editors[header].name) } c.updateGrid() } |