Skip to content

Conversation

@gpoitch
Copy link
Contributor

@gpoitch gpoitch commented Nov 10, 2025

Looking to do something like this in a menu where there is an optional preference and falls back to a default.

Button("New Item") {}
    .keyboardShortcut(newItemKeyboardShortcutPref?.toSwiftUI ?? .init("n"))

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

Successfully merging this pull request may close these issues.

1 participant