feat: middle-click a thumbnail to close that window (closes #1621)

This commit is contained in:
Louis Pontoise committed 2022-05-26 21:36:40 +09:00
1 parent 69a5ffd8b2
commit bc4c0cc505
1 file changed
+7
+7
View File
@@ -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