mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 22:28:39 +00:00
Merge pull request #468 from LeiYu-uniontech/dev
feat: right click map to return
This commit is contained in:
commit
2a91fcf721
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue