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
This commit is contained in:
mantognini 2010-12-20 21:54:22 +00:00
parent 74ebd1a50b
commit 256e30bd27

View File

@ -359,7 +359,7 @@
if (myUseKeyRepeat || ![theEvent isARepeat]) if (myUseKeyRepeat || ![theEvent isARepeat])
myRequester->KeyDown([theEvent keyCode], [theEvent modifierFlags]); 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]); myRequester->TextEntred([[theEvent characters] characterAtIndex:0]);
} }