diff options
-rw-r--r-- | src/ChangeLog | 1 | ||||
-rw-r--r-- | src/input.c | 5 |
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; |