We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 471

Summary: Under MacOS X, the NSText used to interpret the events will store all the keyDown.
Product: SDL Reporter: kuon <kuon>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 CC: manu.toogame
Version: HG 2.0   
Hardware: x86   
OS: Mac OS X 10.4 (Intel)   

Description kuon 2007-07-28 06:44:16 UTC
I just noticed how my patch was implemented,

You added:
  [data->fieldEdit interpretKeyEvents:[NSArray arrayWithObject:event]];
in theCocoa_HandleKeyEvent (and equivalent for pre 1.3), but as you cache the NSText, you should clean the buffer it contains, otherwise it will grow up at each keypress.

Something like:
[data->fieldEdit setString:@""];

must be done after each key interpretation, to prevent the NSText from growing madly.
Comment 1 Sam Lantinga 2007-08-20 23:52:03 UTC
*** Bug 480 has been marked as a duplicate of this bug. ***
Comment 2 Sam Lantinga 2007-08-20 23:54:26 UTC
This is fixed in subversion, thanks!