mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
feat: transfer supports side button
This commit is contained in:
@@ -414,6 +414,17 @@ class TransportPanel(
|
||||
}
|
||||
})
|
||||
|
||||
// https://github.com/TermoraDev/termora/issues/401
|
||||
table.addMouseListener(object : MouseAdapter() {
|
||||
override fun mouseClicked(e: MouseEvent) {
|
||||
if (e.button == 4) {
|
||||
back()
|
||||
} else if (e.button == 5) {
|
||||
forward()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
table.addMouseListener(object : MouseAdapter() {
|
||||
override fun mouseClicked(e: MouseEvent) {
|
||||
if (SwingUtilities.isLeftMouseButton(e) && e.clickCount % 2 == 0) {
|
||||
|
||||
Reference in New Issue
Block a user