mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Clean up shift-key checking and add it to more places
This commit is contained in:
@@ -264,10 +264,8 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||
}
|
||||
|
||||
@IBAction func openArticleInBrowser(_ sender: Any?) {
|
||||
let invert = NSApp.currentEvent?.modifierFlags.contains(.shift) ?? false
|
||||
|
||||
if let link = currentLink {
|
||||
Browser.open(link, invertPreference: invert)
|
||||
Browser.open(link, invertPreference: NSApp.currentEvent?.modifierFlags.contains(.shift) ?? false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user