mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Fix OS X modifier flags cache getting out of date
Fixes #566. Closes #567.
This commit is contained in:
@@ -206,6 +206,9 @@ static int translateKey(unsigned int key)
|
||||
|
||||
- (void)windowDidBecomeKey:(NSNotification *)notification
|
||||
{
|
||||
window->ns.modifierFlags =
|
||||
[NSEvent modifierFlags] & NSDeviceIndependentModifierFlagsMask;
|
||||
|
||||
if (_glfw.cursorWindow == window &&
|
||||
window->cursorMode == GLFW_CURSOR_DISABLED)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user