Commit c53be219 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

close tabs again with middle mouse button click

BUG: 426042
parent 830ce99b
......@@ -146,6 +146,14 @@ void KateTabBar::mousePressEvent(QMouseEvent *event)
emit activateViewSpaceRequested();
}
QTabBar::mousePressEvent(event);
// handle close for middle mouse button
if (event->button() == Qt::MidButton) {
int id = tabAt(event->pos());
if (id >= 0) {
emit tabCloseRequested(id);
}
}
}
void KateTabBar::contextMenuEvent(QContextMenuEvent *ev)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment