Describe the bug
I've set up global shortcuts with SHIFT and one-finger tap, and CTRL and one-finger tap. After using these shortcuts a few times, macOS thinks that SHIFT key and CTRL key is continuously held down. Hence if you type "a", it thinks you typed SHFT A. This does not happen on first use with BetterTouchTool, but at some point later.
I have to log out of my user account and log back in to fix this behavior.
BetterTouchTool version: 2.525 (I upgraded to the latest Alpha Version to see if it has the same problem, and it does. The regular latest version also has this bug.)
Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):
Logging out and back in to my user account fixes the stuck SHIFT or CTRL key. It's not a hardware/keyboard issue.
Note: Before bug reporting, please make sure you have the latest version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.
This usually happens if events get lost due to time outs or other issues. This again happens usually if too many apps try to process these events. Can you think of any other app that needs to listen globally to mouse/keyboard events you have running? (A good indicator is apps that are listed in System Preferences => Security & Privacy => Privacy => Accessibility)
Textexpander sounds most likely, but I haven't had reports of a conflict with it yet.
You could try to set up an action that triggers the predefined action e.g. "Shift Up" or "CMD Up". However I'm not 100% sure whether that will work, it depends a bit on which layer the key got stuck.
I'm having the same problem too. All of a sudden, cmd key will become sticky. As soon as I close BTT, the problem is gone.
I have Alfred 4, Bartender 3, BetterSnapTool, BTT, and Dropbox in Privacy -> Accessibility to allow them to control my computer. However, since the issue goes away by closing BTT, I believe I can assume the problem comes from BTT.
I had GoldenChaos as my default preset, and I thought the problem is with a preset shortcut to make my cmd key sticky, so I deleted it and used AquaTouch as my preset. Do these two presets have keyboard mapping to make any keys sticky?
And, I got the same sticky cmd key problem twice as I type this message now. The problem seemed to happen after I pressed a subset of {shift, ctrl, option, and cmd} keys--I pressed on them and pressed them with {space, arrow, tab} keys to switch tabs, activate Alfred (mapped cmd+space to activate it), switch languages, and so on--but I'm not sure what combination exactly.
Pretty annoying to have to reopen BTT all the time
AquaTouch or GoldenChaos don't affect the modifier keys as far as I know. Are these the only presets you have enabled or do you have something additional?
I was able to reproduce the problem! Sticky cmd key happens only in Chrome and not another app, and it happens right after I press Option+right, which explains why the problem constantly appears when I'm typing (to use Option+right to move the cursor by word). However, there are no Keyboard Shortcuts and Key Sequences set up for Chrome in BTT.
I only have AquaTouch now. I also disabled all keyboard shortcuts for "All Apps" and all 4 for "Media KeyShortcuts" that came with AquaTouch:
Following up on this. If I can't find the issue, Is there a way to configure BTT keyboard to set my option+right key in Chrome to "move right by 1 word," thus overriding the current unknown issue?
I am having the same problem, and I am evaluating BTT (free trial).
BTT is very promising, HOWEVER I've been frustrated for over an hour to automate a simple modifier+alpha: The very common, Cmd-A, to Select-All.
I created this sequence:
Modifier key: Cmd down
Delay 0.2s
Type "a"
Delay 0.2s
Modifier key: Cmd up
Delay 0.2s
After this hotkey runs, another hotkey pastes a string.
I tried triggering this with a mouse click (fail) and F4 (fail).
I even changed the F4 trigger to be "Trigger on key up" so that NO key is depressed when the above sequence runs.
I am running TypeIt4Me also on this macbook pro.
I have experience with other automation tools (selenium, headless Chrome, AppleScript, AutoHotKeys on Windows, etc) and so far BTT cannot do a simple Cmd-A. Ug!
Paste a string works well though, but I need to do Cmd-A before pasting, and when I do the Cmd-A sequence before pasting, this is when the modifier keys get stuck. And then I have to Reset BTT to regain control of my Mac.
What can I try? If I can resolve this, I think BTT will do a lot for me.
for simple shortcuts don’t create any sequence, just use the standard „send keyboard shortcut“ action (the very top one in the list of predefined actions)
Thank you for the reply. Ah, I thought "send keyboard shortcut" required me to configure a shortcut key (with its own sequence). I didn't know it can be used to simply send a cmd-a ! In hindsight, it makes sense BTT has an easy way to send one modifier+keystroke.
I managed to come up with my own workaround, which is more complicated but actually works (but is slower because of the delay cmds). I used "Run AppleScript (blocking)" to send the cmd-a
# Do cmd-a in Safari.
tell application "Safari" to activate
delay 0.5
tell application "System Events"
key code 0 using command down # ctrl-a
delay 0.2
end tell
Thanks for the quick reply! I’ve been a pretty consistent user for the past 3+ years, i haven’t added any new drivers or peripherals recently.
The crazy thing is this happened very suddenly, out of nowhere. I was doing some resource heavy work at the time so figured it was just some form of overload, but resetting my machine didn’t change anything either.
Nothing new was installed, downloaded, or done today afaik, though i’m sure there must have been some auto-downloads. My setup has been working fine, unchanged for years. Doing more digging and isolating variables
Nope, have no actions that involve the option key! Though i do have default named actions that may involve the option key, like “Action: Mission Control” etc. that may involve the option key, so you may be right.
Sometimes it’s CMD that is sticky, sometimes option key.
Interestingly, as long as i have the BTT config page open, i can go back to chrome and it doesn’t happen at all. but as soon as i close it and go back to chrome then do a normal action or gesture, the sticking happens.
It's however very possible that this issue is not really related to BTT, the problem is in some cases other apps using faulty event taps that confuse the system. This only breaks if other apps (like BTT) use event taps, which is why the issue is not visible with BTT quit.
If it is caused by BTT directly you should see something in the recently used section.
just downgraded back to 6.229 in case that was the issue, but didn’t change anything.
Yes i see my shortcuts triggering in the recently used section, they are causing the stickiness. right after i do a specific shrotcut in chrome, the key is left sticky.