How to reproduce:
1. Open the user’s attached “testRightClickPressedButtonsStuck” project
2. Open the “Test → Open Test Window” custom window from the menu
3. Open and close the contextual menu in the window by pressing RMB and LMB, respectively
4. Move around with the mouse in the window
5. Observe the Console log
Expected result: Pressed button value printed in the Console log is 0, meaning that no mouse button is clicked
Actual result: Pressed button value printed in the Console log is 2, meaning that the RMB button is pressed and held
Reproducible with: 2020.3.40f1, 2021.3.12f1, 2022.1.20f1, 2022.2.0b12, 2023.1.0a15
Reproduced on: macOS 12.5 (Intel)
Not reproduced on: Windows 10
Note: Moving the mouse outside the window and back resets the pressed value back to 0