diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2024-02-12 06:26:15 -0600 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-12 13:48:42 +0100 |
commit | 63b9706441719b53b3504733c51c2387fce9019d (patch) | |
tree | d541ead04cfe5082631c7bfd6bd019128cc8cc0b /app/aerc.go | |
parent | 4e26faf498b84b90ecd1af3bd6c6e1f2f3e44a6e (diff) | |
download | aerc-63b9706441719b53b3504733c51c2387fce9019d.tar.gz |
aerc: change event interfaces to vaxis events
Modify the function signature of Event and MouseEvent interfaces to
accept vaxis events. Note that because a vaxis event is an empty
interface, the implementations are not affected and the events are
delivered as they were before
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/aerc.go')
-rw-r--r-- | app/aerc.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/aerc.go b/app/aerc.go index 261e1af7..f4ad531a 100644 --- a/app/aerc.go +++ b/app/aerc.go @@ -11,6 +11,7 @@ import ( "time" "git.sr.ht/~rjarry/go-opt" + "git.sr.ht/~rockorager/vaxis" "github.com/ProtonMail/go-crypto/openpgp" "github.com/emersion/go-message/mail" "github.com/gdamore/tcell/v2" @@ -308,7 +309,7 @@ func (aerc *Aerc) simulate(strokes []config.KeyStroke) { } } -func (aerc *Aerc) Event(event tcell.Event) bool { +func (aerc *Aerc) Event(event vaxis.Event) bool { if aerc.dialog != nil { return aerc.dialog.Event(event) } |