summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-12-09 11:37:28 +0000
committersabetts <sabetts>2000-12-09 11:37:28 +0000
commit72221a537c360e3e7418ae6e7eb912bcfbd360d5 (patch)
treecafc2ecc92a76cf55ec6c80332591ff92970cce1 /src
parent1a8458cd5a3252f9d2141de13ef67a30b215476c (diff)
downloadratpoison-72221a537c360e3e7418ae6e7eb912bcfbd360d5.zip
(cook_keycode): updated comments
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/input.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2313b76..4e6284b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,7 @@
2000-12-09 shawn <sabetts@diggin.lamenet.tmp>
* input.c (cook_keycode): properly handle LockMask
+ (cook_keycode): updated comments
* input.h: added prototype for keysym_to_string
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;