aboutsummaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/dmenu.c b/dmenu.c
index bc69bcf..4584c07 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -353,13 +353,11 @@ kpress(XKeyEvent * e) {
353 len = strlen(text); 353 len = strlen(text);
354 buf[0] = 0; 354 buf[0] = 0;
355 num = XLookupString(e, buf, sizeof buf, &ksym, 0); 355 num = XLookupString(e, buf, sizeof buf, &ksym, 0);
356 if(IsKeypadKey(ksym)) { 356 if(IsKeypadKey(ksym))
357 if(ksym == XK_KP_Enter) { 357 if(ksym == XK_KP_Enter)
358 ksym = XK_Return; 358 ksym = XK_Return;
359 } else if(ksym >= XK_KP_0 && ksym <= XK_KP_9) { 359 else if(ksym >= XK_KP_0 && ksym <= XK_KP_9)
360 ksym = (ksym - XK_KP_0) + XK_0; 360 ksym = (ksym - XK_KP_0) + XK_0;
361 }
362 }
363 if(IsFunctionKey(ksym) || IsKeypadKey(ksym) 361 if(IsFunctionKey(ksym) || IsKeypadKey(ksym)
364 || IsMiscFunctionKey(ksym) || IsPFKey(ksym) 362 || IsMiscFunctionKey(ksym) || IsPFKey(ksym)
365 || IsPrivateKeypadKey(ksym)) 363 || IsPrivateKeypadKey(ksym))