Fixed beeping introduced when we started passing key events through the responder chain.
This commit is contained in:
parent
431fcd7fca
commit
57751eb145
1 changed files with 23 additions and 0 deletions
|
@ -224,6 +224,29 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
|||
}
|
||||
}
|
||||
|
||||
// We'll respond to key events by doing nothing so we don't beep.
|
||||
// We could handle key messages here, but we lose some in the NSApp dispatch,
|
||||
// where they get converted to action messages, etc.
|
||||
- (void)flagsChanged:(NSEvent *)theEvent
|
||||
{
|
||||
//Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);
|
||||
}
|
||||
- (void)keyDown:(NSEvent *)theEvent
|
||||
{
|
||||
//Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);
|
||||
}
|
||||
- (void)keyUp:(NSEvent *)theEvent
|
||||
{
|
||||
//Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);
|
||||
}
|
||||
|
||||
// We'll respond to selectors by doing nothing so we don't beep.
|
||||
// The escape key gets converted to a "cancel" selector, etc.
|
||||
- (void)doCommandBySelector:(SEL)aSelector
|
||||
{
|
||||
//NSLog(@"doCommandBySelector: %@\n", NSStringFromSelector(aSelector));
|
||||
}
|
||||
|
||||
- (void)mouseDown:(NSEvent *)theEvent
|
||||
{
|
||||
int button;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue