Merge pull request #2101 from MartinJNash/mjn/open-in-browser-alternate
2099 | Keyboard shortcut to open in browser with inverted preference
This commit is contained in:
commit
b426ca98be
|
@ -269,6 +269,12 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
|||
openArticleInBrowser(sender)
|
||||
}
|
||||
|
||||
@IBAction func openInBrowserUsingOppositeOfSettings(_ 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
|
||||
|
|
|
@ -140,5 +140,29 @@
|
|||
<key>action</key>
|
||||
<string>toggleStarred:</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>key</key>
|
||||
<string>[enter]</string>
|
||||
<key>shiftModifier</key>
|
||||
<true/>
|
||||
<key>action</key>
|
||||
<string>openInBrowserUsingOppositeOfSettings:</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>key</key>
|
||||
<string>[return]</string>
|
||||
<key>shiftModifier</key>
|
||||
<true/>
|
||||
<key>action</key>
|
||||
<string>openInBrowserUsingOppositeOfSettings:</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>key</key>
|
||||
<string>B</string>
|
||||
<key>shiftModifier</key>
|
||||
<true/>
|
||||
<key>action</key>
|
||||
<string>openInBrowserUsingOppositeOfSettings:</string>
|
||||
</dict>
|
||||
</array>
|
||||
</plist>
|
||||
|
|
Loading…
Reference in New Issue