BTT - not "listening" to currently pressed modifier keys - issue

TLDR:
Mouse shortcuts, which turn the mouse’s buttons into single keyboard keys, do not listen to the currently pressed modifier keys.

Need help fixing the issue.
Since, if I manually add all possible key+modifier combinations to “patch” the issue, BTT usually randomly doesn’t trigger the shortcuts, especially when double-pressing the same shortcut twice.

Issue: https://www.loom.com/share/b4929ec49dd44cb29a5f74da37a632da

This is complicated because BTT is not really made for listening to its own generated events.
However you might be able to make it work with the latest alpha by enabling this ("Use higher level modifier key recognition):

Hey Andreas, I gave it a try on the alpha version, inmediately saw an improvement on shortcuts, but also a lot of totally unrelated shortcuts getting triggered because the modifiers were pressed long after I stopped pressing the keys. I assume that it will be a great feature once it leaves the Alpha version; for now, it’s just too unreliable to use.

What do you recommend I do, install a second app to send these shortcuts to BTT?

This behavior should be better in 6.078 alpha.

Instead of a second app I'd duplicate your setup to the normal mouse configuration, then it will directly trigger and not need to go through the recognize mouse click => synthesized keyboard shortcut => recognize synthesized keyboard shortcut => trigger action route but directly go from recognize mouse click to trigger action . (Possibly convert your action sequences to named triggers)

Ok, I’ll test the update.

Could you elaborate on the solution? I just want to get it right and I’m not sure what steps to take.
Should I turn the “mouse button” into a “named trigger” instead of an “F key”?
Is the feature of “use higher level modifier key recognition” a must for my setup?

Hey Andreas, I’d appreaciate some help, I still can’t fix the issue myself :folded_hands:t2:

did the newer alphas not help?

No Andreas, gave it a good try. As I said, it isn’t realiable.
Sometimes it will hold a modifier key pressed, randomly, even minutes after the last shortcut with that modifier got triggered.
So if it sometimes just gets stuck, it’s not reliable enough to use.
Of course, a BTT restart fixes the issue, but I would like to know if there’s a better and more reliable way to make this work.