Skip to content

Commit

Permalink
Merge pull request #468 from LeiYu-uniontech/dev
Browse files Browse the repository at this point in the history
feat: right click map to return
  • Loading branch information
barry-ran authored Aug 8, 2021
2 parents d8ea917 + e0cb232 commit 2a91fcf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions QtScrcpy/device/ui/videoform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 2a91fcf

Please sign in to comment.