diff options
author | sabetts <sabetts> | 2000-12-09 11:37:28 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-12-09 11:37:28 +0000 |
commit | 72221a537c360e3e7418ae6e7eb912bcfbd360d5 (patch) | |
tree | cafc2ecc92a76cf55ec6c80332591ff92970cce1 /src/input.c | |
parent | 1a8458cd5a3252f9d2141de13ef67a30b215476c (diff) | |
download | ratpoison-72221a537c360e3e7418ae6e7eb912bcfbd360d5.zip |
(cook_keycode): updated comments
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input.c b/src/input.c index c9a276a..e28907d 100644 --- a/src/input.c +++ b/src/input.c @@ -67,19 +67,20 @@ cook_keycode (KeyCode keycode, KeySym *keysym, unsigned int *mod) { *keysym = normal; } + /* But if the shifted code is defined, we use it and remove the + shift mask */ else if (*mod & ShiftMask) { *keysym = shifted; *mod &= ~(ShiftMask | LockMask); } + /* If caps lock is on, use shifted for alpha keys */ else if (normal >= XK_a && normal <= XK_z && *mod & LockMask) { *keysym = shifted; } - /* But if the shifted code is defined, we use it and remove the - shift mask */ else { *keysym = normal; |