aboutsummaryrefslogtreecommitdiffstats
path: root/examples/key-handler
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-09-28 12:19:41 +0200
committerGitHub <noreply@github.com>2021-09-28 12:19:41 +0200
commit0ee05d29f0649185e93368dd593418083c3751ad (patch)
tree20b39dd33fd5401e1f99835308564b35b187ab87 /examples/key-handler
parenta2339e70fdac1db7453cb008c4e37acdb5468f02 (diff)
downloadnsxiv-0ee05d29f0649185e93368dd593418083c3751ad.tar.zst
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. Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'examples/key-handler')
-rwxr-xr-xexamples/key-handler2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/key-handler b/examples/key-handler
index 614e1ec..6ac754b 100755
--- a/examples/key-handler
+++ b/examples/key-handler
@@ -11,6 +11,8 @@
# The key combo argument has the following form: "[C-][M-][S-]KEY",
# where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
# keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
+# If KEY has an uppercase equivalent, S-KEY is resolved into it. For instance,
+# K replaces S-k and Scedilla replaces S-scedilla, but S-Delete is sent as-is.
rotate() {
degree="$1"