3 ms·
Ah! You mentioned in the article needing single button keyboard shortcuts. You can actually do this in SwiftUI, by passing an empty array on for the modifiers.
by spfzero 4y ago
Ah! You mentioned in the article needing single button keyboard shortcuts. You can actually do this in SwiftUI, by passing an empty array on for the modifiers. I have code up right now so I'll copy a line:
.keyboardShortcut(KeyEquivalent("e"), modifiers: [])
That's for using just the "e" key, with no modifiers.