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

*** empty log message ***

(Old svn revision: 10658)
parent 7bc54b22
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(tmp, "shift"))
if(strstr(tmp, "shift"))
{
key->modifier = key->modifier | ShiftMask;
}
if(!strstr(tmp, "control"))
if(strstr(tmp, "control"))
{
key->modifier = key->modifier | ControlMask;
}
if(!strstr(tmp, "alt") || !strstr(tmp, "mod1"))
if(strstr(tmp, "alt") || strstr(tmp, "mod1"))
{
key->modifier = key->modifier | AltMask;
}
if(!strstr(tmp, "meta") || !strstr(tmp, "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