Post

Replies

Boosts

Views

Activity

SwiftUI on mac, button keyboard shortcut not working on Menu's Button
Menu("+") { Button("add") { print("add") } .keyboardShortcut("a", modifiers: [.command]) } The menu button not show keyboard shortcut label, and the shortcut function can not be used. I don't know if this is a bug or a function lack, obviously it not working as I expected. My environment: macOS Monterey 12.1 (21C52) XCode 13.1
Replies
1
Boosts
1
Views
902
Activity
Dec ’21