From 256e30bd27bbd6f8580c3d63cfa444eddcac245f Mon Sep 17 00:00:00 2001 From: mantognini Date: Mon, 20 Dec 2010 21:54:22 +0000 Subject: [PATCH] Fixed text event on OS X not linked with EnableKeyRepeat git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1759 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/OSX/SFOpenGLView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/OSX/SFOpenGLView.mm b/src/SFML/Window/OSX/SFOpenGLView.mm index 855ca608e..38cfd45dc 100644 --- a/src/SFML/Window/OSX/SFOpenGLView.mm +++ b/src/SFML/Window/OSX/SFOpenGLView.mm @@ -359,7 +359,7 @@ if (myUseKeyRepeat || ![theEvent isARepeat]) myRequester->KeyDown([theEvent keyCode], [theEvent modifierFlags]); - if ([[theEvent characters] length] > 0) + if ((myUseKeyRepeat || ![theEvent isARepeat]) && [[theEvent characters] length] > 0) myRequester->TextEntred([[theEvent characters] characterAtIndex:0]); }