From 937e43afab55f137e16c2b0605857a40638192aa Mon Sep 17 00:00:00 2001 From: mohad12211 Date: Mon, 7 Aug 2023 21:44:28 +0400 Subject: [PATCH] fix: check if ctrl modifier is among the currently set modifiers --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index 732cc7e47..97d010a9f 100644 --- a/src/rcore.c +++ b/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) {