Braille: Fix typing quickly

On finishing releasing Braille keys, we should clear the just-commited
pattern, to reset the state to initial state, and avoid having to wait for
0.3s before typing the next pattern.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Jean-Philippe Mengual <jpmengual@hypra.fr>
This commit is contained in:
Samuel Thibault 2019-06-07 23:35:33 +02:00
parent 99a2cf1aa0
commit cbb59d1727

View file

@ -71,6 +71,7 @@ _XimLocalFilter(Display *d, Window w, XEvent *ev, XPointer client_data)
keysym = XK_braille_blank | ic->private.local.brl_committing;
ev->type = KeyPress;
braille = True;
ic->private.local.brl_committing = 0;
} else {
return(True);
}