Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard modifications not working every time I change audio device #520

Open
jason-wihardja opened this issue Apr 18, 2024 · 15 comments
Open
Labels
bug Something isn't working

Comments

@jason-wihardja
Copy link

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.

image

@jason-wihardja jason-wihardja changed the title Shortcut not working every time I change audio device Keyboard modifications not working every time I change audio device Apr 18, 2024
@zenangst
Copy link
Owner

Oh, that is an interesting bug.
Mind sharing how you’ve setup your workflows so I can try and reproduce it?

@jason-wihardja
Copy link
Author

jason-wihardja commented Apr 18, 2024

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
image

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

@zenangst
Copy link
Owner

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)

@jason-wihardja
Copy link
Author

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

@zenangst
Copy link
Owner

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

@zenangst
Copy link
Owner

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.

@jason-wihardja
Copy link
Author

Thanks for the quick fix @zenangst. I'll surely try it out when it is released.

@zenangst zenangst added the bug Something isn't working label Apr 23, 2024
@zenangst
Copy link
Owner

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?

@jason-wihardja
Copy link
Author

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

@zenangst
Copy link
Owner

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.

@zenangst
Copy link
Owner

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

@jason-wihardja
Copy link
Author

Unfortunately, the issue still arises. In particular with F14 and F15 whose default actions are decrease/increase screen brightness

@jason-wihardja
Copy link
Author

It didn't work even after I disabled the built-in macos functions, the keys seem to still getting mapped to decrease/increase brightness

image

@jason-wihardja
Copy link
Author

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

@zenangst
Copy link
Owner

@jason-wihardja thanks for following up ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants