diff --git a/src/ui/main-window/ThumbnailView.swift b/src/ui/main-window/ThumbnailView.swift index 9279f1ce..d45288be 100644 --- a/src/ui/main-window/ThumbnailView.swift +++ b/src/ui/main-window/ThumbnailView.swift @@ -251,6 +251,13 @@ class ThumbnailView: NSStackView { } } + override func otherMouseUp(with event: NSEvent) { + // middle-click + if event.buttonNumber == 2 { + window_?.close() + } + } + static func makeShadow(_ color: NSColor) -> NSShadow { let shadow = NSShadow() shadow.shadowColor = color