svkbd

simple virtual keyboard
git clone git://git.suckless.org/svkbd
Log | Files | Refs | README | LICENSE

commit a43bf5c4c159a07f3350eeca8b0119e661359cf6
parent 4ec3b00d6cfb7a3af8f420361f6fb104e774c411
Author: Maarten van Gompel <proycon@anaproy.nl>
Date:   Sun, 14 Mar 2021 13:20:39 +0100

fix for output key on release

Diffstat:
Msvkbd.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/svkbd.c b/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) {