Search code examples
cocoasandboxhotkeys

Prevention of Cmd+Shift+Q alert emergence in sandboxed application


I block the screen with my own window in my app. and I need to prevent the emergence of this alert which called by Cmd+Shift+Q system hotkey.

enter image description here


Solution

  • What you're looking for is called kiosk mode. There are several things you may want to block, including “session termination” (the logout commands, among other things), application switching and Exposé, and the Apple menu; that document describes how you can block whichever items you want to block.