Kaynağa Gözat

【内容工具】- 打印添加快捷键

liaoxiaoyue 1 yıl önce
ebeveyn
işleme
15a46e5420

+ 1 - 1
PDF Office/PDF Office/Class/PDFWindowController/ViewController/KMMainViewController+Action.swift

@@ -290,7 +290,7 @@ extension KMMainViewController {
     }
     
     func printingMenu() -> NSMenuItem {
-        let menuItem = NSMenuItem(title: NSLocalizedString("Print", comment: ""), action: #selector(menuItemAnnotationClick_Print), target: self)!
+        let menuItem = NSMenuItem(title: NSLocalizedString("Print", comment: ""), action: #selector(menuItemAnnotationClick_Print), keyEquivalent: "p")
         return menuItem
     }