Unpress modifiers so there is no problem when exiting svkbd inbetween.
This commit is contained in:
parent
d356e43d9c
commit
ce0779e5c9
8
svkbd.c
8
svkbd.c
@ -371,6 +371,14 @@ press(Key *k, KeySym mod) {
|
|||||||
True, 0);
|
True, 0);
|
||||||
}
|
}
|
||||||
XTestFakeKeyEvent(dpy, XKeysymToKeycode(dpy, k->keysym), True, 0);
|
XTestFakeKeyEvent(dpy, XKeysymToKeycode(dpy, k->keysym), True, 0);
|
||||||
|
|
||||||
|
for(i = 0; i < LENGTH(keys); i++) {
|
||||||
|
if(keys[i].pressed && IsModifierKey(keys[i].keysym)) {
|
||||||
|
XTestFakeKeyEvent(dpy,
|
||||||
|
XKeysymToKeycode(dpy, keys[i].keysym),
|
||||||
|
False, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
drawkey(k);
|
drawkey(k);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user