Mac OS X 10.6 — Cocoa
I m using global event monitor for displaying status item menu using custom keyboard shortcut:
This solution is working but the system generates a beep sound every time when user presses F12 and active application doesn t respond to this key event.
globalEventMonitor = [NSEvent addGlobalMonitorForEventsMatchingMask:NSKeyDownMask handler:^(NSEvent *event)
{
if ([event keyCode] == kVK_F12)
{
[self handleGlobalShortcut];
// How to prevent system beep?
}
}];
Is there any way to prevent an active application from beeping every time I use a global shortcut?