Adds history menu
This commit is contained in:
@@ -55,7 +55,14 @@ protocol ShortcutResponder: AnyObject {
|
||||
optional func showHistory(_ sender: Any?)
|
||||
|
||||
@objc
|
||||
optional func handleOpenURL(_ sender: Any?, url: URL?)
|
||||
optional func handleOpenURL(_ sender: Any?, forEvent event: OpenURLEvent?)
|
||||
}
|
||||
|
||||
public class OpenURLEvent: UIEvent {
|
||||
let url: URL
|
||||
public init(url: URL) {
|
||||
self.url = url
|
||||
}
|
||||
}
|
||||
|
||||
fileprivate extension Array {
|
||||
@@ -172,13 +179,6 @@ public class KeyboardShortcuts {
|
||||
title: "Go Forward",
|
||||
action: #selector(ShortcutResponder.goForward)
|
||||
),
|
||||
|
||||
UIKeyCommand(
|
||||
modifiers: [.command, .shift],
|
||||
input: "h",
|
||||
title: "Show History…",
|
||||
action: #selector(ShortcutResponder.showHistory)
|
||||
),
|
||||
]),
|
||||
|
||||
// Tab Navigation
|
||||
|
||||
Reference in New Issue
Block a user