mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
20 lines
378 B
Swift
20 lines
378 B
Swift
//
|
|
// NSEvent-Extensions.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Maurice Parker on 9/26/22.
|
|
// Copyright © 2022 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension NSEvent {
|
|
|
|
var isRightClick: Bool {
|
|
let rightClick = (self.type == .rightMouseDown)
|
|
let controlClick = self.modifierFlags.contains(.control)
|
|
return rightClick || controlClick
|
|
}
|
|
|
|
}
|