浏览代码

【页面编辑】按快捷键删除页面无反应

liujiajie 6 月之前
父节点
当前提交
8521f926c9

+ 2 - 3
PDF Office/PDF Master/Base.lproj/Main.storyboard

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
+<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <scenes>
@@ -484,7 +484,6 @@
                                             <string key="keyEquivalent" base64-UTF8="YES">
 CA
 </string>
-                                            <modifierMask key="keyEquivalentModifierMask"/>
                                             <connections>
                                                 <action selector="delete:" target="Ady-hI-5gd" id="0Mk-Ml-PaM"/>
                                             </connections>

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Thumbnail/Base/KMPDFThumbViewBaseController.swift

@@ -948,7 +948,7 @@ class KMPDFThumbViewBaseController: KMBaseViewController {
         if (item.sel == KMPDFThumbViewMenu.deleteSelector) {
             item_ = menu.addItem(withTitle: NSLocalizedString("Delete Page", comment: ""), action: KMPDFThumbViewMenu.deleteSelector, target: self)
             item_?.keyEquivalent = String(Unicode.Scalar(NSBackspaceCharacter)!)
-            item_?.keyEquivalentModifierMask = []
+            item_?.keyEquivalentModifierMask = [.command]
             if (!self.canDelete()) {
                 item_?.action = nil
             }