Implementing Larry Ramey's "glutExit" feature (see e-mails from him on 11/9/05, 6...
[freeglut] / src / freeglut_main.c
index 44876f2..c49943e 100644 (file)
@@ -1290,7 +1290,10 @@ void FGAPIENTRY glutMainLoopEvent( void )
             /* Cease processing this event if it is auto repeated */
 
             if (window->State.KeyRepeating)
+            {
+                if (event.type == KeyPress) window->State.KeyRepeating = GL_FALSE;
                 break;
+            }
 
             if( event.type == KeyPress )
             {