Merge pull request #13032 from druiz17/fix-spamming-reset-sensors

don't spam resetSensors function when holding down Qt::Key_Apostrophe
This commit is contained in:
John Conklin II 2018-05-07 10:52:51 -07:00 committed by GitHub
commit 6ac43c34c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3634,7 +3634,7 @@ void Application::keyPressEvent(QKeyEvent* event) {
} else {
showCursor(Cursor::Icon::DEFAULT);
}
} else {
} else if (!event->isAutoRepeat()){
resetSensors(true);
}
break;