diff options
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/input.c b/input.c index b94c968..b9c5185 100644 --- a/input.c +++ b/input.c @@ -29,10 +29,7 @@ input_keycodetrans(KeyCode kc, u_int state, enum ctltype *ctl, char *chr) *ctl = CTL_NONE; *chr = '\0'; - if (state & ShiftMask) - ks = XKeycodeToKeysym(X_Dpy, kc, 1); - else - ks = XKeycodeToKeysym(X_Dpy, kc, 0); + ks = XKeycodeToKeysym(X_Dpy, kc, (state & ShiftMask) ? 1 : 0); /* Look for control characters. */ switch (ks) { |