diff --git a/ChuanhuWallpaper/Components/SaveButton.swift b/ChuanhuWallpaper/Components/SaveButton.swift index 478c78a..434a19a 100644 --- a/ChuanhuWallpaper/Components/SaveButton.swift +++ b/ChuanhuWallpaper/Components/SaveButton.swift @@ -25,6 +25,7 @@ struct SaveButton: View { Alert(title: Text("An Error Occured"), message: Text(errorMessage), dismissButton: .cancel()) } .keyboardShortcut("s") + .help("⌘ S") } private func save() { diff --git a/ChuanhuWallpaper/ContentView.swift b/ChuanhuWallpaper/ContentView.swift index 4b216e1..66a9f96 100644 --- a/ChuanhuWallpaper/ContentView.swift +++ b/ChuanhuWallpaper/ContentView.swift @@ -50,6 +50,7 @@ struct ContentView: View { } } .keyboardShortcut(KeyEquivalent.escape, modifiers: []) + .help("Esc") .offset(x: wallpapers.isEmpty ? 200 : 0) .animation(.spring(), value: wallpapers) , alignment: .trailing diff --git a/ChuanhuWallpaper/View/WallpaperPlaceholderCell.swift b/ChuanhuWallpaper/View/WallpaperPlaceholderCell.swift index 280dfe0..1c91e16 100644 --- a/ChuanhuWallpaper/View/WallpaperPlaceholderCell.swift +++ b/ChuanhuWallpaper/View/WallpaperPlaceholderCell.swift @@ -64,6 +64,7 @@ struct WallpaperPlaceholderCell: View { Text("Choose Photo(s)...").fixedSize(horizontal: false, vertical: true) } .keyboardShortcut("i") + .help("⌘ I") } }