Skip to content
Snippets Groups Projects
Commit 7bc54b22 authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

*** empty log message ***

(Old svn revision: 10657)
parent fee456b3
No related branches found
No related tags found
No related merge requests found
......@@ -62,19 +62,19 @@ void parseKeyString(Display * dpy, MyKey * key, char *str)
tmp = g_ascii_strdown(str, -1);
key->keycode = XKeysymToKeycode(dpy, XStringToKeysym(k + 1));
if(!strstr(str, "shift"))
if(!strstr(tmp, "shift"))
{
key->modifier = key->modifier | ShiftMask;
}
if(!strstr(str, "control"))
if(!strstr(tmp, "control"))
{
key->modifier = key->modifier | ControlMask;
}
if(!strstr(str, "alt") || strstr(str, "mod1"))
if(!strstr(tmp, "alt") || !strstr(tmp, "mod1"))
{
key->modifier = key->modifier | AltMask;
}
if(!strstr(str, "meta") || strstr(str, "mod2"))
if(!strstr(tmp, "meta") || !strstr(tmp, "mod2"))
{
key->modifier = key->modifier | MetaMask;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment