Fix OS X modifier flags cache getting out of date

Fixes #566.
Closes #567.
This commit is contained in:
Camilla Berglund
2016-02-26 08:37:30 +01:00
parent baf574494d
commit d3f5d036f8
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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)
{