cosmetics
This commit is contained in:
parent
63c9e30a76
commit
61976c292b
8
dmenu.c
8
dmenu.c
|
@ -353,13 +353,11 @@ kpress(XKeyEvent * e) {
|
||||||
len = strlen(text);
|
len = strlen(text);
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
num = XLookupString(e, buf, sizeof buf, &ksym, 0);
|
num = XLookupString(e, buf, sizeof buf, &ksym, 0);
|
||||||
if(IsKeypadKey(ksym)) {
|
if(IsKeypadKey(ksym))
|
||||||
if(ksym == XK_KP_Enter) {
|
if(ksym == XK_KP_Enter)
|
||||||
ksym = XK_Return;
|
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;
|
ksym = (ksym - XK_KP_0) + XK_0;
|
||||||
}
|
|
||||||
}
|
|
||||||
if(IsFunctionKey(ksym) || IsKeypadKey(ksym)
|
if(IsFunctionKey(ksym) || IsKeypadKey(ksym)
|
||||||
|| IsMiscFunctionKey(ksym) || IsPFKey(ksym)
|
|| IsMiscFunctionKey(ksym) || IsPFKey(ksym)
|
||||||
|| IsPrivateKeypadKey(ksym))
|
|| IsPrivateKeypadKey(ksym))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user