We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
It is not possible to re-bind an already registered shortcut to a new one. Instead, both get called:
extension KeyboardShortcuts.Name { static let newFile = Self("newFile", default: .init(.n, modifiers: [.command])) static let newFolder = Self("newFolder", default: .init(.n, modifiers: [.command])) } func focusOnFiles() { KeyboardShortcuts.disable(.newFolder) KeyboardShortcuts.enable(.newFile) } func focusOnFolder() { KeyboardShortcuts.disable(.newFile) KeyboardShortcuts.enable(.newFolder) }
I think this is because the KeyboardShortcuts.Name is internally converted to a Shortcut that doesn't know which Name it maps to.
KeyboardShortcuts.Name
Shortcut
Name
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
It is not possible to re-bind an already registered shortcut to a new one. Instead, both get called:
I think this is because the
KeyboardShortcuts.Name
is internally converted to aShortcut
that doesn't know whichName
it maps to.The text was updated successfully, but these errors were encountered: