|
@@ -739,19 +739,10 @@ extension KMBrowserWindowController {
|
|
|
@IBAction func doGoForward(_ sender: Any?) {
|
|
|
KMPrint("doGoForward ...")
|
|
|
}
|
|
|
- @IBAction func doZoomIn(_ sender: Any?) {
|
|
|
- KMPrint("doZoomIn ...")
|
|
|
- }
|
|
|
- @IBAction func doZoomOut(_ sender: Any?) {
|
|
|
- KMPrint("doZoomOut ...")
|
|
|
- }
|
|
|
|
|
|
@IBAction func doZoomToPhysicalSize(_ sender: Any?) {
|
|
|
KMPrint("doZoomToPhysicalSize ...")
|
|
|
}
|
|
|
- @IBAction func doZoomToFit(_ sender: Any?) {
|
|
|
- KMPrint("doZoomToFit ...")
|
|
|
- }
|
|
|
@IBAction func alternateZoomToFit(_ sender: Any?) {
|
|
|
KMPrint("alternateZoomToFit ...")
|
|
|
}
|
|
@@ -1599,6 +1590,23 @@ extension KMBrowserWindowController: KMSystemPDFMenuProtocol {
|
|
|
document.mainViewController?.doZoomToFit(sender)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @IBAction func doZoomIn(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument, document.isHome == false {
|
|
|
+ document.mainViewController?.doZoomIn(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @IBAction func doZoomOut(_ sender: Any?) {
|
|
|
+ if (self.canResponseDocumentAction() == false) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if let document = self.browser.activeTabContents() as? KMMainDocument, document.isHome == false {
|
|
|
+ document.mainViewController?.doZoomOut(sender)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// MARK: - KMSystemGotoMenuProtocol
|