Hi,
It looks like GlfwApplication.cpp::currentGlfwModifiers returns the wrong modifiers after opening the MacOS screenshot panel and cancelling it.
The problem comes from glfwGetKey that will return true at:
if(glfwGetKey(window, GLFW_KEY_LEFT_SHIFT) ||
glfwGetKey(window, GLFW_KEY_RIGHT_SHIFT))
Reproduction
- Open a GLFW application
- Press
cmd+shift+5 to open the MacOS screenshot dialog
- Close it using escape
- Check the value of
GlfwApplication.cpp::currentGlfwModifiers while not holding any key
Fix
I guess one way to fix it would be to only use the glfwSetKeyCallback method instead of using glfwGetKey