diff options
author | Jelle Besseling <jelle@pingiun.com> | 2019-08-18 11:33:14 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-08-20 10:04:29 +0900 |
commit | 36c6030e81b229414bb42bf7fc37d091c6497ddf (patch) | |
tree | c5de62c269ae514408281f8323e79a1b5920fa7a /widgets | |
parent | 217e8855f223258dc12a6adc836f6e1678ade03f (diff) |
Add addresses argument to forward command
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/compose.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index c7e38b8..b4ae078 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -153,6 +153,13 @@ func (c *Composer) FocusSubject() *Composer { return c } +func (c *Composer) FocusRecipient() *Composer { + c.focusable[c.focused].Focus(false) + c.focused = 1 + c.focusable[c.focused].Focus(true) + return c +} + // OnHeaderChange registers an OnChange callback for the specified header. func (c *Composer) OnHeaderChange(header string, fn func(subject string)) { if editor, ok := c.editors[header]; ok { |