Commit a2b7ce74 authored by ntninja's avatar ntninja 👲🏻 Committed by Oliver Sander

Support Forward and Backward mouse buttons in presentation mode

REVIEW: 130172
parent 5fdbecf4
......@@ -702,8 +702,14 @@ void PresentationWidget::mousePressEvent( QMouseEvent * e )
m_goToNextPageOnRelease = true;
}
// pressing right button
else if ( e->button() == Qt::RightButton )
// pressing the "move forward" mouse button: unlike the left button this
// always means "show next page", so we unconditionally delegate to that
// action on mouse button press
else if ( e->button() == Qt::ForwardButton ) {
slotNextPage();
}
// pressing right or backward button
else if ( e->button() == Qt::RightButton || e->button() == Qt::BackButton )
slotPrevPage();
}
......
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