mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
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:
parent
74ebd1a50b
commit
256e30bd27
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user