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

Volume keys (.volumeUp and .volumeDown) do not work #37

Open
GameParrot opened this issue Aug 4, 2022 · 1 comment
Open

Volume keys (.volumeUp and .volumeDown) do not work #37

GameParrot opened this issue Aug 4, 2022 · 1 comment

Comments

@GameParrot
Copy link

When listening for a volume keypress (.volumeUp or .volumeDown) using

let hotKey = HotKey(key: .volumeUp, modifiers: [])
hotKey.keyDownHandler = {
 print("Volume up pressed")
}

the keyDownHandler is not called. In this example, it should print "Volume up pressed" when you press the volume up key.

@johnpg
Copy link

johnpg commented Sep 26, 2022

I'm seeing the same thing, and this was reported earlier as well (#11). I take it no one is looking at this? The earlier thread had a suggested fix. Although I have no idea if that would actually work.

In my case I'm adding modifiers, the idea is to use the volume keys to control the volume on something besides my Mac, but no matter what I try the built in functions take over. Does anyone know if it's possible to make this work?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants