feat: right click map to return

dev
leiyu 4 years ago
parent d8ea9170ef
commit e0cb232133

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

Loading…
Cancel
Save