aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/read.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-10-03 12:49:53 -0500
committerRobin Jarry <robin@jarry.cc>2022-10-03 21:08:23 +0200
commit1c2dd4c9f15ddc9cba0849c4077525bd6d64cd6a (patch)
treecadb2323193b517b5d9ff21c332d572a21ee87f0 /commands/msg/read.go
parent150aa0f498b9780a40fdab815552c4c4230b5178 (diff)
downloadaerc-1c2dd4c9f15ddc9cba0849c4077525bd6d64cd6a.tar.gz
bindings: properly check for exKey keystrokes
When checking for an exKey, aerc inspects the key and the rune of the event vs the exkey binding. Runes should only be inspected if the key is a tcell.KeyRune. Some Ctrl-[:alpha:] keys report a rune in tcell, but aerc does not have these bound to the keystroke definition. Only <C-x> has a rune bound, and is one of the very few <C-> keys that can actually be bound to exKey Only compare the Rune field if the key is of type KeyRune. Otherwise, compare the Key. Also compare any modifiers with the keystroke/key event. These changes allow for any control or alt key combination to be bound to the exkey. Update documentaiton to reflect that the default keybind is ':', and not <semicolon> Fixes: https://todo.sr.ht/~rjarry/aerc/67 Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/msg/read.go')
0 files changed, 0 insertions, 0 deletions