瀏覽代碼

fix: check if ctrl modifier is among the currently set modifiers (#3230)

mohad12211 2 年之前
父節點
當前提交
db55bed72b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/rcore.c

+ 1 - 1
src/rcore.c

@@ -5609,7 +5609,7 @@ static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, i
     if ((key == GLFW_KEY_F12) && (action == GLFW_PRESS))
     {
 #if defined(SUPPORT_GIF_RECORDING)
-        if (mods == GLFW_MOD_CONTROL)
+        if (mods & GLFW_MOD_CONTROL)
         {
             if (gifRecording)
             {