From e35f458b5304ea4f45be4bad91d1954e78f37b8e Mon Sep 17 00:00:00 2001 From: Geoff Pado Date: Mon, 1 Sep 2025 00:57:37 -0700 Subject: [PATCH] Remove duplicate undo/redo commands --- .../Editing View/PhotoEditingViewController.swift | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Modules/Legacy/Editing/Sources/Editing View/PhotoEditingViewController.swift b/Modules/Legacy/Editing/Sources/Editing View/PhotoEditingViewController.swift index b5012fd8..80f15105 100644 --- a/Modules/Legacy/Editing/Sources/Editing View/PhotoEditingViewController.swift +++ b/Modules/Legacy/Editing/Sources/Editing View/PhotoEditingViewController.swift @@ -376,16 +376,6 @@ public class PhotoEditingViewController: UIViewController, UIScrollViewDelegate, // MARK: Key Commands - #if targetEnvironment(macCatalyst) - #else - private let undoKeyCommand = UIKeyCommand(action: #selector(PhotoEditingViewController.undo), input: "z", modifierFlags: .command, discoverabilityTitle: Strings.undoKeyCommandDiscoverabilityTitle) - private let redoKeyCommand = UIKeyCommand(action: #selector(PhotoEditingViewController.redo), input: "z", modifierFlags: [.command, .shift], discoverabilityTitle: Strings.redoKeyCommandDiscoverabilityTitle) - - open override var keyCommands: [UIKeyCommand]? { - return [undoKeyCommand, redoKeyCommand] - } - #endif - open override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool { if action == #selector(undo(_:)) { return undoManager?.canUndo ?? false