mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-15 18:02: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)
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user