In my Mac app, I override and accept certain keystrokes via the keyUp
function in an NSView, which isn't meant to accept keystrokes.
When a key is pressed, the keyUp
function is called, and I do process the keystroke, without even calling super keyUp:
, and everything works, except that it also makes that default 'doonk' sound that happens when you press a key somewhere you shouldn't.
Is there any way to indicate that the keystroke was handled and accepted, and that I don't need a beep to tell the user it wasn't?