aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/compose.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/compose.go')
-rw-r--r--widgets/compose.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index c7e38b81..b4ae078a 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 {