feat: middle-click a thumbnail to close that window (closes #1621)
This commit is contained in:
1 parent
69a5ffd8b2
commit
bc4c0cc505
1 file changed
+7
@@ -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 {
|
static func makeShadow(_ color: NSColor) -> NSShadow {
|
||||||
let shadow = NSShadow()
|
let shadow = NSShadow()
|
||||||
shadow.shadowColor = color
|
shadow.shadowColor = color
|
||||||
|
|||||||
Reference in new issue
Block a user