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 - Under MacOS X, the NSText used to interpret the events will store all the keyDown.
Summary: Under MacOS X, the NSText used to interpret the events will store all the key...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86 Mac OS X 10.4 (Intel)
: P2 critical
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
: 480 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-28 06:44 UTC by kuon
Modified: 2007-08-20 23:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!