Krolyxon
Commit 0ee05d2

Branches

Refs →

nsxiv0ee05d2

Clarify comment in example key-handler (#89)

currently, the key-handler will not receive the `S-` modifier if there's
a capital equivalent of that KEY.
if https://github.com/nsxiv/nsxiv/pull/78 is to be merged, then this
behaviour may change.

however as it currently stands, we should fix the comment. we can update
it later if needed.
Author
N-R-K
Date
2021-09-28 16:19 +0600
Committer
GitHub · 2021-09-28 10:19 +0000
Parent
a2339e7
Commit
0ee05d29f0649185e93368dd593418083c3751ad

+2 −0

1 file changed

  1. M examples/key-handler +2 −0
M examples/key-handler View
@@ -11,6 +11,8 @@
1111 # The key combo argument has the following form: "[C-][M-][S-]KEY",
1212 # where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
1313 # keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
14+# If KEY has an uppercase equivalent, S-KEY is resolved into it. For instance,
15+# K replaces S-k and Scedilla replaces S-scedilla, but S-Delete is sent as-is.
1416
1517 rotate() {
1618 degree="$1"