diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-10-03 12:49:53 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-10-03 21:08:23 +0200 |
commit | 1c2dd4c9f15ddc9cba0849c4077525bd6d64cd6a (patch) | |
tree | cadb2323193b517b5d9ff21c332d572a21ee87f0 /doc/aerc-config.5.scd | |
parent | 150aa0f498b9780a40fdab815552c4c4230b5178 (diff) | |
download | aerc-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 'doc/aerc-config.5.scd')
-rw-r--r-- | doc/aerc-config.5.scd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 8b7aa55c..9eb87904 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -819,7 +819,7 @@ each binding context: This can be set to a keystroke which will bring up the command input in this context. - Default: <semicolon> + Default: ':' In addition to letters, special keys may be specified in <angle brackets>. The following special keys are supported: |