Commit 48d22f26 authored by Dominik Haumann's avatar Dominik Haumann

TabBar: Close tab/document with middle mouse button

Thanks to Manuel Klemenz for the patch! We want more! :-)
REVIEW: 128197
parent e3af0edc
......@@ -188,6 +188,8 @@ void KateTabButton::mousePressEvent(QMouseEvent *ev)
// notify that this button was activated
emit activated(this);
} else if (ev->button() == Qt::MiddleButton) {
emit closeRequest(this);
} else {
ev->ignore();
}
......
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