Got it. The beep appears in keyDown, not in KeyUp .. therefore, to remove the beep. I need to handle this ... empty will be enough. The key is not to pass it super
-(void)keyDown:(NSEvent *)theEvent{
}
-(void)keyUp:(NSEvent *)theEvent{
switch (theEvent.keyCode) {
case KeyCodeEnumBackspace:
case KeyCodeEnumDelete:
{
if (self.scheduleControl.selectedEvent) {
[self.scheduleControl deleteEvent:self.scheduleControl.selectedEvent];
}
}
break;
default:
break;
}
}
source
share