After a change in Qt MiddleButton is the correct value, not MidButton (cherry picked from commit 7f2aead7)