We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d39cc commit 2701e6bCopy full SHA for 2701e6b
1 file changed
CodeEdit/Features/Editor/TabBar/Tabs/Tab/EditorTabView.swift
@@ -193,6 +193,16 @@ struct EditorTabView: View {
193
}
194
195
196
+ .onAppear {
197
+ NSEvent.addLocalMonitorForEvents(matching: .otherMouseDown) { event in
198
+ if self.isHovering && event.type == .otherMouseDown && event.buttonNumber == 2 {
199
+ DispatchQueue.main.async {
200
+ editor.closeTab(file: tabFile)
201
+ }
202
203
+ return event
204
205
206
207
208
var body: some View {
0 commit comments