瀏覽代碼

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

liaoxiaoyue 1 年之前
父節點
當前提交
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
     }