From 45d0b5003f90dda19caee7a060c775af9120692c Mon Sep 17 00:00:00 2001 From: leiyu Date: Sun, 8 Aug 2021 11:23:04 +0800 Subject: [PATCH] feat: right click map to return --- QtScrcpy/device/ui/videoform.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/QtScrcpy/device/ui/videoform.cpp b/QtScrcpy/device/ui/videoform.cpp index e752768..adef612 100644 --- a/QtScrcpy/device/ui/videoform.cpp +++ b/QtScrcpy/device/ui/videoform.cpp @@ -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; } }