diff options
author | Sander van Dijk | 2008-03-23 21:17:35 +0100 |
---|---|---|
committer | Sander van Dijk | 2008-03-23 21:17:35 +0100 |
commit | 61976c292bf575859390eeefca087cb60a57ee8b (patch) | |
tree | dab27e8b2fd82d65c0e45e3f5eaf85478ad3f0bd | |
parent | 63c9e30a7638a1e8e845fb32c9284f118b3102ed (diff) |
cosmetics
-rw-r--r-- | dmenu.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -353,13 +353,11 @@ kpress(XKeyEvent * e) { len = strlen(text); buf[0] = 0; num = XLookupString(e, buf, sizeof buf, &ksym, 0); - if(IsKeypadKey(ksym)) { - if(ksym == XK_KP_Enter) { + if(IsKeypadKey(ksym)) + if(ksym == XK_KP_Enter) ksym = XK_Return; - } else if(ksym >= XK_KP_0 && ksym <= XK_KP_9) { + else if(ksym >= XK_KP_0 && ksym <= XK_KP_9) ksym = (ksym - XK_KP_0) + XK_0; - } - } if(IsFunctionKey(ksym) || IsKeypadKey(ksym) || IsMiscFunctionKey(ksym) || IsPFKey(ksym) || IsPrivateKeypadKey(ksym)) |