From cdc90afbaa1a6ff7d0900b6ce904a1e51e31bcd1 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 12 Feb 2024 06:26:19 -0600 Subject: aerc: replace tcell keys with vaxis keys Replace all instances of tcell key usage with vaxis keys Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- commands/send-keys.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'commands') diff --git a/commands/send-keys.go b/commands/send-keys.go index a7b6dee9..a61bfcf2 100644 --- a/commands/send-keys.go +++ b/commands/send-keys.go @@ -3,7 +3,7 @@ package commands import ( "git.sr.ht/~rjarry/aerc/app" "git.sr.ht/~rjarry/aerc/config" - "github.com/gdamore/tcell/v2" + "git.sr.ht/~rockorager/vaxis" "github.com/pkg/errors" ) @@ -40,7 +40,10 @@ func (s SendKeys) Execute(args []string) error { } for _, key := range keys2send { - ev := tcell.NewEventKey(key.Key, key.Rune, key.Modifiers) + ev := vaxis.Key{ + Keycode: key.Key, + Modifiers: key.Modifiers, + } term.Event(ev) } -- cgit