Closed jasonish closed 1 year ago
Just an update on this. This is due to how combo sequences transition between each other. Indeed this isn't how it should work - pressing random keys between sequences should cancel the combo. As for some form of timeout, I'll be working on that as well.
As for surrounding character presses, I don't believe those should interfere with observing a combo, so g g i shouldn't prevent g i from firing. If you want more granular control, you may want to bind several smaller combos and allow your program to control transitions between each.
I'll keep you posted, thanks for reporting this issue!
I think I made a type in my expected behavior. Of course g g i
should invoke the g i
combo. I'll update the main description.
Cool stuff, yeah we can get this fixed. Thanks again @jasonish.
@jasonish just released v1.2.3. Give it a try and let me know if any issues come up for you.
Describe the bug
I'm attempting to define Gmail style key combinations such as "g i", "g l", etc. However, the event triggers even if another letter was type inbetween.
To Reproduce
Pressing
g
, release, pressi
works as expected.However, typing "g x i", or "g a i", etc also triggers the event which is not expected.
Expected behavior
Sequences such as "g a i" should not trigger the event.
Other observations
There does not appear to be a timeout. I can press
g
, then hiti
10 or so seconds later and it triggers.Thanks!