Keyboard modifications not working every time I change audio device
I have my headphone plugged into my MBP, and I have keyboard cowboy modify my keyboard inputs. Everytime I click change audio device (when sometimes I put my headphone down and listen to audio directly through the speakers), none of the keyboard modifications work anymore. I had to quit the app and relaunch it to get it back working.
Oh, that is an interesting bug. Mind sharing how you’ve setup your workflows so I can try and reproduce it?
I have a macropad, which fires keyboard keys F13 through F20, then have keyboard cowboys basically capture the key for each app like this one for example
For F1 through F12, I have Karabiner to make my main keyboard behave like Apple keyboard. But I don't think this is the cause since I've tried quitting the Karabiner process and still able to reproduce the problem
Thanks for the additional info @jason-wihardja
Is the application entirely unresponsive or is it that it doesn't pick up on any more keystrokes?
(I'm trying to narrow it down it the mach port timed out or if there is a stray task lurking around causing issues)
No, it's entirely functional. When I open the app, I can also click through the UI. It's just that the keystrokes are not being processed
Interesting, that leads me to believe that something is happening inside the mach port part of the application. I'll keep digging. Thanks for following up @jason-wihardja
Hey @jason-wihardja, I found one occasion where it would stop working which I have fixed on main. I'm not 100% sure that this is the issue that you are running into, but hopefully it is. I'll let you know when the new version is out.
Thanks for the quick fix @zenangst. I'll surely try it out when it is released.
Hey @jason-wihardja, 3.24.0 just dropped. Can you take it for a spin and see if the bug has been fixed or not?
Hi @zenangst, unfortunately it didn't fix the problem. I was wondering, were you able to reproduce the problem in your environment? Because I also start to wonder, whether it has something to do with the key I'm assigning my buttons to, as F13-F20 is not very commonly used
Unfortunately not, I only use the built-in keyboard or an external Apple wireless keyboard and those buttons don't exist.
I might be able to get some help to reproduce it by asking someone at work that have a more "high-tech" keyboard than I have.
Hey @jason-wihardja, I just pushed a new update that improve the handling of F-keys. Mind taking it for a spin to see if it helps in any way?
https://github.com/zenangst/KeyboardCowboy/releases/tag/3.24.2
Unfortunately, the issue still arises. In particular with F14 and F15 whose default actions are decrease/increase screen brightness
It didn't work even after I disabled the built-in macos functions, the keys seem to still getting mapped to decrease/increase brightness
Upon further inspection, I noticed that using the latest version, only F14 and F15 are broken. The other function buttons now work correctly. I tried to tinker with different combinations of the MacOS settings and Keyboard Cowboy settings, but none of the combination worked correctly. A quick Google search gives me several results from other Github repos with similar issues. It seems that there's some sort of bug/issue within the OS itself that causes these 2 buttons to get overridden with the default settings. I'm currently remapping those 2 buttons to other unused shortcuts as a workaround and everything works fine for the time being
@jason-wihardja thanks for following up ❤️