Hyper key combination isn't registered when keys pressed immediately one after another

Andreas

I’m sorry but I’m not understanding what you are suggesting that I do. Is this to re-define the hyper key or the “named trigger”?

I updated to

/Applications/BetterTouchTool.app:
CFBundleShortVersionString: 3.545
CFBundleVersion: 1684

but now my “Named Trigger” is not working at all when Caps Lock is pressed + released.

The Hyper Key does work when used with another modifier.

I still cannot get my Hyper +' to work reliably. I can’t let go of the Caps Lock quick enough.

Update

I reverted to

/Applications/BetterTouchTool.app:
CFBundleShortVersionString: 3.544
CFBundleVersion: 1683

and my “Caps Lock Named Trigger” worked again.

Thanks Andreas, HyperKey combinations seem to work more reliably in v3.545 now.

@tjluoma I don't have a lot experience in Keyboard Maestro, but would it work to add 'delay 500ms' at the beginning of your script, just to give time for you to release Caps Lock?

1 Like

Thank you! Currently looking in named trigger issue.
My suggestion is to use the BTT actions that "up" the modifier keys, before triggering your Keyboard Maestro macro.

The named trigger issue should now be resolved in 3.546!

On my machine I can now press caps lock and e.g. "A" completely simultaneously and it still works (For shortcuts defined in BTT).

It is not working for me. It worked OK when I first tried "Caps Lock Alone", but after I used a few "Caps Lock + Another Key" then "Caps Lock Alone" stopped working.

(Caps Lock + A seems to be working a bit better but I can't tell if that's a side-effect of the other issue that I am seeing.)

UPDATE:

I restarted BTT again and now it seems to be working OK.

Thanks for the quick fix @Andreas_Hegenberg! I'm still having two separate issues:

  1. This one is easier to reproduce, as it happens consistently: it seems that any time I press one of the arrow keys, the next hyper key trigger does not work. When I try again it generally works on the first retry, sometimes on the second.

  2. Sometimes the modifier keys are staying pressed after the shortcut has been triggered (already being discussed on Possible modifier-stuck-down issue on Big Sur - #5 by Andreas_Hegenberg).

Ah the arrow key issue I can reproduce (it's because arrow keys also press the FN key and keep it press until the next key event). I'll fix that now.

I have been unable to reproduce the stuck modifier key issue but will continue looking into this.

Ah! That gave me an idea. I added a “Pause Until” in Keyboard Maestro to say “Pause until the ' key is “UP” before executing, so as long as I let go of Caps Lock before then, it should work.

(Unfortunately I could not seem to get Keyboard Maestro to do “Pause Until Caps Lock” is up.)

Are you triggering the keyboard maestro macro from a BTT trigger or directly via a keyboard shortcut? (I'd recommend to trigger it via BTT, then my solution posted above should work fine). Or maybe you can replicate your Macro within BTT?

@sstop I hope both of these are fixed in 3.547 which is currently building and should be online in about 10 minutes

1 Like

@Andreas_Hegenberg great! The arrow key problems seems to be fixed, but the stuck modifier keys bug is still going strong :sweat_smile: This time, somehow, I managed to get it permanently stuck and had to turn the keyboard off/on in order to undo this condition (I got it on video and can send it to you if you want). Can it be related to external/bluetooth keyboards somehow?

Very weird! Are you on macOS Big Sur (11.x)?

Yep, Big Sur 11.2.

Just verified that it is happening with the keyboard on the cable.

Also, somehow, I've managed to lock BTT in a state where, if it is open, the hyper key is perpetually stuck, even if I close and reopen BTT. I was thinking about reinstalling BTT and see if something improves, just wanted to check in with you first, @Andreas_Hegenberg in case you'd like me to run any tests/diagnostic in this bugged state.

I think reinstalling would not help (restarting BTT should bring it into the same state). I'll do some more testing here!

Do you know whether you need to triggger a shortcut to get the modifiers stuck or do they also get stuck if you just press caps lock?

Maybe downgrade to a previous version for now: https://folivora.ai/releases

OK, I'll try to downgrade and see. Right now (after reinstalling and updating to the latest alpha) the hyper keys combination is not stuck anymore, but all my older shortcuts are still working if I invoke them using CTRL+ALT+SHIFT+CMD, even though BTT is not showing any keyboard shortcuts.

Did you maybe uncheck "visible in ui" for one of your presets ?

I have one more idea which is currently building and should be available as 3.549 in 10 minutes.

1 Like

Sadly, no... I even tried to delete the old preset to see if it was the cause.

OMG, sorry about these latest issues. I've updated Alfred in the meantime and it apparently reenabled a couple of old workflows I used to have. That's why the shortcuts were working even when nothing was set up in BTT.

I'll keep testing to see if the stuck keys are still a problem. Thanks @Andreas_Hegenberg!

I have done more testing and various stress tests but couldn't reproduce a stuck key issue in v3.549 (alpha). If this is still happening for you with that version, it would be great if you'd go to Help => Export Diagnostic Debug Information and send the result to andreas@folivora.ai

Hey @Andreas_Hegenberg, managed to export the diagnostic information on two different times the hyper key got stuck.

Here you go:

BetterTouchToolDebug 2.zip (81.4 KB) BetterTouchToolDebug.zip (73.2 KB)

Thanks for the support!

Tip for those wanting to use a Hyperkey with Keyboard Maestro

I just realized that Keyboard Maestro can trigger a macro when a keyboard combination is released rather than pressed.

When using Karabiner for the hyper key, this will prevent any action inside the Keyboard Maestro macro from bring triggered by the hyper key itself.

Here’s an example of how it looks in Keyboard Maestro:

1 Like