diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-07-19 14:15:48 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-19 14:15:48 -0400 |
commit | 7a489cb0011a34a68d3e77d0174076857cc37902 (patch) | |
tree | d21df8ea9b872ccc08cff117f203ad0d80b94a26 /widgets/compose.go | |
parent | b3a66866b95d77f202f571efedd2f7ec309aacf5 (diff) |
Add Unix socket for communicating with aerc
Diffstat (limited to 'widgets/compose.go')
-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 f1c8014..401815c 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -138,6 +138,13 @@ func (c *Composer) FocusTerminal() *Composer { return c } +func (c *Composer) FocusSubject() *Composer { + c.focusable[c.focused].Focus(false) + c.focused = 2 + c.focusable[c.focused].Focus(true) + return c +} + func (c *Composer) OnSubjectChange(fn func(subject string)) { c.headers.subject.OnChange(func() { fn(c.headers.subject.input.String()) |