From 63b9706441719b53b3504733c51c2387fce9019d Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 12 Feb 2024 06:26:15 -0600 Subject: 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 Acked-by: Robin Jarry --- app/listbox.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/listbox.go') diff --git a/app/listbox.go b/app/listbox.go index 7d1a4f27..d22eea1b 100644 --- a/app/listbox.go +++ b/app/listbox.go @@ -9,6 +9,7 @@ import ( "git.sr.ht/~rjarry/aerc/config" "git.sr.ht/~rjarry/aerc/lib/ui" "git.sr.ht/~rjarry/aerc/log" + "git.sr.ht/~rockorager/vaxis" "github.com/gdamore/tcell/v2" "github.com/mattn/go-runewidth" ) @@ -228,7 +229,7 @@ func (lb *ListBox) Invalidate() { ui.Invalidate() } -func (lb *ListBox) Event(event tcell.Event) bool { +func (lb *ListBox) Event(event vaxis.Event) bool { showFilter := lb.showFilterField() if event, ok := event.(*tcell.EventKey); ok { switch event.Key() { -- cgit