Unpress modifiers so there is no problem when exiting svkbd inbetween.

master
Christoph Lohmann 12 years ago
parent d356e43d9c
commit ce0779e5c9
  1. 8
      svkbd.c

@ -371,6 +371,14 @@ press(Key *k, KeySym mod) {
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);
}

Loading…
Cancel
Save