Browse Source

【fix】快捷键关闭标签,兼容在有窗口弹起的场景

tangchao 7 months ago
parent
commit
dca811c32f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      PDF Office/PDF Master/AppDelegate.swift

+ 4 - 0
PDF Office/PDF Master/AppDelegate.swift

@@ -344,6 +344,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
             if browser.tabCount() == 1 {
                 windowControler?.window?.close()
             } else {
+                if let _ = windowControler?.window?.attachedSheet {
+                    NSSound.beep()
+                    return
+                }
                 browser.closeTab()
             }
         } else {