Focus Loss in BTT every couple of seconds

Describe the bug
I was trying to edit the name of a trigger and realized I couldn't because the text field kept loosing focus every couple of seconds. In fact any selected BTT UI element will loose focus.


Device information:

  • Type of Mac: Macbook Pro 2021 16" M1 Max
  • macOS version: 14.3.1
  • BetterTouchTool version: 4.449

I‘d guess some trigger in BTT triggering something that causes the focus change? Have you checked the „recently used section“ for anything obvious?

Yes, sorry I had included my findings originally but wanted to do some more testing because there was something I found a little confusing.

But anyway, yes, it is indeed related to a Time-based trigger that runs every 3 seconds.

When I disabled that trigger, it takes a little while (about 10-20 seconds it seems), but the issue does stop. When I reenable to trigger the issue immediately comes back.

The trigger is an old one that has remained unchanged for years.

It simply runs this script:

set theSwitch to "/opt/homebrew/Cellar/switchaudio-osx/1.1.0/SwitchAudioSource"

tell application "BetterTouchTool"
	set_string_variable "customVariable1" to do shell script theSwitch & " -c"
	
	set variable to get_string_variable "customVariable1"
	return variable

end tell

Should be fixed in 4.450 alpha! (uploading now)

1 Like

Tested and solved! Thank you sir :raised_hands:t3:

1 Like