feat: middle-click will now close windows and quit applications
This commit is contained in:
1 parent
3a0c84a8f5
commit
2f8c01418d
1 file changed
+7
-1
@@ -80,7 +80,13 @@ class ThumbnailView: FlippedView {
|
|||||||
override func otherMouseUp(with event: NSEvent) {
|
override func otherMouseUp(with event: NSEvent) {
|
||||||
// middle-click
|
// middle-click
|
||||||
if event.buttonNumber == 2 {
|
if event.buttonNumber == 2 {
|
||||||
window_?.close()
|
if let window_ {
|
||||||
|
if window_.isWindowlessApp {
|
||||||
|
window_.application.quit()
|
||||||
|
} else {
|
||||||
|
window_.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user