diff --git a/src/main/kotlin/app/termora/MyTabbedPane.kt b/src/main/kotlin/app/termora/MyTabbedPane.kt index 7eac692..62f2490 100644 --- a/src/main/kotlin/app/termora/MyTabbedPane.kt +++ b/src/main/kotlin/app/termora/MyTabbedPane.kt @@ -44,6 +44,12 @@ class MyTabbedPane : FlatTabbedPane() { tabCloseCallback?.accept(this, index) return } + } else if (e.id == MouseEvent.MOUSE_PRESSED && isShiftPressedOnly(e.modifiersEx)) { + val index = indexAtLocation(e.x, e.y) + if (index >= 0) { + return + } + return } super.processMouseEvent(e) }