Skip to content

Commit

Permalink
feat: right click map to return
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiYu-uniontech committed Aug 8, 2021
1 parent d8ea917 commit e0cb232
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 e0cb232

Please sign in to comment.