summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c5
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;