void XBMCHelper::CaptureAllInput() { // Take keyboard focus away from FrontRow and native screen saver if (g_sysinfo.IsAppleTV()) { ProcessSerialNumber psn = {0, kCurrentProcess}; SetFrontProcess(&psn); EnableSecureEventInput(); } }
Q_GUI_EXPORT void qt_mac_secure_keyboard(bool b) { static bool secure = false; if (b != secure){ b ? EnableSecureEventInput() : DisableSecureEventInput(); secure = b; } }