Add ⌘ + , keyboard shortcut to "Preferences..." (#753)

This commit is contained in:
Takuro Ito 2021-10-31 21:53:15 +09:00 committed by GitHub
parent 274fff45f8
commit 6580da15d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ class MenuHandler: NSMenu, NSMenuDelegate {
if app.macOS10() {
self.insertItem(NSMenuItem.separator(), at: self.items.count)
}
self.insertItem(withTitle: NSLocalizedString("Preferences…", comment: "Shown in menu"), action: #selector(app.prefsClicked), keyEquivalent: "", at: self.items.count)
self.insertItem(withTitle: NSLocalizedString("Preferences…", comment: "Shown in menu"), action: #selector(app.prefsClicked), keyEquivalent: ",", at: self.items.count)
let updateItem = NSMenuItem(title: NSLocalizedString("Check for updates…", comment: "Shown in menu"), action: #selector(app.updaterController.checkForUpdates(_:)), keyEquivalent: "")
updateItem.target = app.updaterController
self.insertItem(updateItem, at: self.items.count)