Adds reader mode shortcut (cmd+shift+R)
This commit is contained in:
@@ -47,6 +47,9 @@ protocol ShortcutResponder: AnyObject {
|
||||
|
||||
@objc
|
||||
optional func toggleDarkMode(_ sender: Any?)
|
||||
|
||||
@objc
|
||||
optional func openInReaderMode(_ sender: Any?)
|
||||
}
|
||||
|
||||
fileprivate extension Array {
|
||||
@@ -88,6 +91,13 @@ public class KeyboardShortcuts {
|
||||
action: #selector(ShortcutResponder.focusURLBar)
|
||||
),
|
||||
|
||||
// Open in Reader
|
||||
UIKeyCommand(
|
||||
modifiers: [ .command, .shift ], input: "R",
|
||||
title: "Open in Reader Mode…",
|
||||
action: #selector(ShortcutResponder.openInReaderMode)
|
||||
),
|
||||
|
||||
// Tabs
|
||||
UIMenu(options: .displayInline, children: [
|
||||
// Create Tab
|
||||
|
||||
Reference in New Issue
Block a user