diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2024-02-12 06:26:19 -0600 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-12 13:48:48 +0100 |
commit | cdc90afbaa1a6ff7d0900b6ce904a1e51e31bcd1 (patch) | |
tree | 4765fa753846ffe5a9d07c1fe442e8e1f2db0c61 /commands/send-keys.go | |
parent | f001f65240f85f0af91703dbcc0b068c0797297a (diff) | |
download | aerc-cdc90afbaa1a6ff7d0900b6ce904a1e51e31bcd1.tar.gz |
aerc: replace tcell keys with vaxis keys
Replace all instances of tcell key usage with vaxis keys
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/send-keys.go')
-rw-r--r-- | commands/send-keys.go | 7 |
1 files changed, 5 insertions, 2 deletions
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) } |