mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Cocoa: Fix half of all key events for Caps Lock
This adds reporting of those Caps Lock key events that cause the lock state to change. The full fix involving IOHID is being worked on in #1368. Related to #1368. Closes #1373.
This commit is contained in:
parent
cf0857f79a
commit
c4903d9267
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user