Add key commands to the browser
@@ -286,6 +286,13 @@ class DocumentBrowserViewController: UIViewController, UICollectionViewDataSourc
stopObserver()
}
+ override var keyCommands: [UIKeyCommand]? {
+ return [
+ UIKeyCommand(input: "n", modifierFlags: .command, action: #selector(create(_:)), discoverabilityTitle: "Create script"),
+ UIKeyCommand(input: "n", modifierFlags: [.command, .shift], action: #selector(createFolder(_:)), discoverabilityTitle: "Create folder")
+ ]
+ }
+
// MARK: - State restoration
override func encodeRestorableState(with coder: NSCoder) {
