-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Fail to listen for Caps Lock #158
Comments
Caps Lock is a modifier. You cannot listen to just a modifier. I realize now that should be better documented. For your needs, you'll have to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I create a
KeyboardShortcuts.Name
calledmy_capslock
. And setKeyboardShortcuts.Shortcut
KeyboardShortcuts.Shortcut(KeyboardShortcuts.Key.capsLock, modifiers: [])
for it.However, when running the app, pressing Caps Lock on the keyboard makes nothing happen...
How can I listen for the Caps Lock key event so that I can further override the default behaviour of pressing Caps Lock in macOS?
KeyboardShortcuts version: 1.16.1
Codes to reproduce:
App.swift:
ContentView.swift:
The text was updated successfully, but these errors were encountered: