mirror of
git://git.suckless.org/svkbd
synced 2025-05-04 00:38:43 +00:00
fix for output key on release
This commit is contained in:
parent
4ec3b00d6c
commit
a43bf5c4c1
3
svkbd.c
3
svkbd.c
@ -584,7 +584,6 @@ unpress(Key *k, KeySym mod)
|
||||
simulate_keypress(mod);
|
||||
}
|
||||
simulate_keypress(k->keysym);
|
||||
if (printoutput) printkey(k, mod);
|
||||
pressbegin.tv_sec = 0;
|
||||
pressbegin.tv_usec = 0;
|
||||
}
|
||||
@ -601,9 +600,9 @@ unpress(Key *k, KeySym mod)
|
||||
for (i = 0; i < numkeys; i++) {
|
||||
if (keys[i].pressed && !IsModifierKey(keys[i].keysym)) {
|
||||
simulate_keyrelease(keys[i].keysym);
|
||||
if ((printoutput) && (ispressingkeysym == keys[i].keysym)) printkey(&keys[i], mod);
|
||||
keys[i].pressed = 0;
|
||||
drawkey(&keys[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i != numkeys) {
|
||||
|
Loading…
Reference in New Issue
Block a user