diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index 53f0170eb..5106586a3 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -345,6 +345,8 @@ static NSUInteger translateKeyToModifierFlag(int key) case GLFW_KEY_LEFT_SUPER: case GLFW_KEY_RIGHT_SUPER: return NSEventModifierFlagCommand; + case GLFW_KEY_CAPS_LOCK: + return NSEventModifierFlagCapsLock; } return 0;