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 516 - SDL_EnableUNICODE + SDL_ENABLEAPPEVENTS produce extra system beeps
Summary: SDL_EnableUNICODE + SDL_ENABLEAPPEVENTS produce extra system beeps
Status: RESOLVED DUPLICATE of bug 508
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 1.2.12
Hardware: PowerPC Mac OS X (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL: http://www-personal.umich.edu/~mressl
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-15 20:47 UTC by Marc S. Ressl
Modified: 2007-11-19 09:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc S. Ressl 2007-11-15 20:47:50 UTC
I am writing an SDL program which should be portable (that's why I use SDL), but features a customized Cocoa userinterface that uses CMD key shortcuts.

I need to enable SDL_ENABLEAPPEVENTS and SDL_EnableUNICODE. When I do so, application events (triggered with the CMD key) perform their action, but a system beep is also heard.

I found the bug in /src/video/quartz/SDL_QuartzEvents.m. There is an (apparently to me) unnecessary call to interpretKeyEvents:.

The solution would be to remove this call:

    if (SDL_TranslateUNICODE && state == SDL_PRESSED) {
//        [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]];
        chars = [ event characters ];

Thanks
Comment 1 Marc S. Ressl 2007-11-19 09:02:00 UTC

*** This bug has been marked as a duplicate of bug 508 ***