Send key events for caps lock on macOS

This commit is contained in:
Keith Bauer 2018-11-04 13:12:28 +13:00
parent cc3552465d
commit 8afdb879d7
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -241,6 +241,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;