mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: shift to close tabs causes switching
This commit is contained in:
@@ -44,6 +44,12 @@ class MyTabbedPane : FlatTabbedPane() {
|
|||||||
tabCloseCallback?.accept(this, index)
|
tabCloseCallback?.accept(this, index)
|
||||||
return
|
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)
|
super.processMouseEvent(e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user