diff --git a/README.md b/README.md index ba34f9af..26aa7419 100644 --- a/README.md +++ b/README.md @@ -283,6 +283,7 @@ information on what to include when reporting a bug. - [EGL] Added support for `EGL_KHR_get_all_proc_addresses` (#871) - [EGL] Added support for `EGL_KHR_context_flush_control` - [EGL] Bugfix: The test for `EGL_RGB_BUFFER` was invalid +- [Cocoa] Bugfix: caps lock was not generating key events ## Contact diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 217588f7..db9935ce 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -235,6 +235,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;