feat: right click map to return

This commit is contained in:
leiyu 2021-08-08 11:23:04 +08:00
parent 305082726e
commit 45d0b5003f

View file

@ -527,6 +527,14 @@ void VideoForm::mousePressEvent(QMouseEvent *event)
if (event->button() == Qt::MiddleButton) {
if (m_device && !m_device->isCurrentCustomKeymap()) {
emit m_device->postGoHome();
return;
}
}
if (event->button() == Qt::RightButton) {
if (m_device && !m_device->isCurrentCustomKeymap()) {
emit m_device->postGoBack();
return;
}
}