2099 | Keyboard shortcut to open in browser in background/foreground contrary to user preference.
- Add openInBrowserAlternate() function - Add shit-modified entries to to GlobalKeyboardShortcuts.plist to trigger new function
This commit is contained in:
parent
314df88e12
commit
834be9edff
|
@ -269,6 +269,12 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||||
openArticleInBrowser(sender)
|
openArticleInBrowser(sender)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@IBAction func openInBrowserAlternate(_ sender: Any?) {
|
||||||
|
if let link = currentLink {
|
||||||
|
Browser.open(link, inBackground: !AppDefaults.openInBrowserInBackground)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func nextUnread(_ sender: Any?) {
|
@IBAction func nextUnread(_ sender: Any?) {
|
||||||
guard let timelineViewController = currentTimelineViewController, let sidebarViewController = sidebarViewController else {
|
guard let timelineViewController = currentTimelineViewController, let sidebarViewController = sidebarViewController else {
|
||||||
return
|
return
|
||||||
|
|
|
@ -140,5 +140,29 @@
|
||||||
<key>action</key>
|
<key>action</key>
|
||||||
<string>toggleStarred:</string>
|
<string>toggleStarred:</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>key</key>
|
||||||
|
<string>[enter]</string>
|
||||||
|
<key>shiftModifier</key>
|
||||||
|
<true/>
|
||||||
|
<key>action</key>
|
||||||
|
<string>openInBrowserAlternate:</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>key</key>
|
||||||
|
<string>[return]</string>
|
||||||
|
<key>shiftModifier</key>
|
||||||
|
<true/>
|
||||||
|
<key>action</key>
|
||||||
|
<string>openInBrowserAlternate:</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>key</key>
|
||||||
|
<string>B</string>
|
||||||
|
<key>shiftModifier</key>
|
||||||
|
<true/>
|
||||||
|
<key>action</key>
|
||||||
|
<string>openInBrowserAlternate:</string>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
Loading…
Reference in New Issue