diff --git a/Mac/MainWindow/MainWindowController.swift b/Mac/MainWindow/MainWindowController.swift index 01e7335c2..690b57c83 100644 --- a/Mac/MainWindow/MainWindowController.swift +++ b/Mac/MainWindow/MainWindowController.swift @@ -269,6 +269,12 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations { openArticleInBrowser(sender) } + @IBAction func openInBrowserAlternate(_ sender: Any?) { + if let link = currentLink { + Browser.open(link, inBackground: !AppDefaults.openInBrowserInBackground) + } + } + @IBAction func nextUnread(_ sender: Any?) { guard let timelineViewController = currentTimelineViewController, let sidebarViewController = sidebarViewController else { return diff --git a/Shared/Resources/GlobalKeyboardShortcuts.plist b/Shared/Resources/GlobalKeyboardShortcuts.plist index 88e4eac90..8b2bb170e 100644 --- a/Shared/Resources/GlobalKeyboardShortcuts.plist +++ b/Shared/Resources/GlobalKeyboardShortcuts.plist @@ -140,5 +140,29 @@ action toggleStarred: + + key + [enter] + shiftModifier + + action + openInBrowserAlternate: + + + key + [return] + shiftModifier + + action + openInBrowserAlternate: + + + key + B + shiftModifier + + action + openInBrowserAlternate: +