Sent another patch that does a better job of toggling caps-lock. I couldn't make it fail with the old patch but I think the new patch is somewhat better.
Ian On Tue, May 23, 2017 at 11:17 PM Gerd Hoffmann <kra...@redhat.com> wrote: > Hi, > > > After a little more experimentation I think that the approach in this > > patch is the right one. modifierFlags doesn't[1] indicate which > > instance of a modifier (ie: left or right) is being held. > > Ok, makes sense. One more thing: I think capslock must be handled > differently as keydown + keyup toggle state. > > cheers, > Gerd > >