src/video/quartz/SDL_QuartzEvents.m
changeset 816 428f688f2ad2
parent 782 dbc5905402b0
child 897 9e27fdb98eab
--- a/src/video/quartz/SDL_QuartzEvents.m	Fri Feb 13 06:42:17 2004 +0000
+++ b/src/video/quartz/SDL_QuartzEvents.m	Fri Feb 13 17:57:16 2004 +0000
@@ -266,6 +266,9 @@
     int i;
     int bit;
     SDL_keysym key;
+    
+    if (current_mods == newMods)
+    	return;
 
     key.scancode    = 0;
     key.sym         = SDLK_UNKNOWN;
@@ -462,6 +465,8 @@
             type = [ event type ];
             isInGameWin = QZ_IsMouseInWindow (this);
 
+            QZ_DoModifiers(this, [ event modifierFlags ] );
+
             switch (type) {
                 case NSLeftMouseDown:
                     if ( getenv("SDL_HAS3BUTTONMOUSE") ) {
@@ -613,7 +618,6 @@
                     QZ_DoKey (this, SDL_PRESSED, event);
                     break;
                 case NSFlagsChanged:
-                    QZ_DoModifiers(this, [ event modifierFlags ] );
                     break;
                 case NSAppKitDefined:
                     switch ( [ event subtype ] ) {