mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 19:25:49 +08:00
Remove 10.8 and older accessibility since it is no longer supported
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3439edf946
commit
7cb95ef91f
@@ -73,9 +73,6 @@ namespace BlackInput
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool CKeyboardMac::init()
|
bool CKeyboardMac::init()
|
||||||
{
|
|
||||||
bool accessibilityEnabled = false;
|
|
||||||
if (AXIsProcessTrustedWithOptions != NULL)
|
|
||||||
{
|
{
|
||||||
// 10.9 and later
|
// 10.9 and later
|
||||||
const void *keys[] = { kAXTrustedCheckOptionPrompt };
|
const void *keys[] = { kAXTrustedCheckOptionPrompt };
|
||||||
@@ -89,13 +86,7 @@ namespace BlackInput
|
|||||||
&kCFCopyStringDictionaryKeyCallBacks,
|
&kCFCopyStringDictionaryKeyCallBacks,
|
||||||
&kCFTypeDictionaryValueCallBacks);
|
&kCFTypeDictionaryValueCallBacks);
|
||||||
|
|
||||||
accessibilityEnabled = AXIsProcessTrustedWithOptions(options);
|
bool accessibilityEnabled = AXIsProcessTrustedWithOptions(options);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// 10.8 and older
|
|
||||||
accessibilityEnabled = AXAPIEnabled();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!accessibilityEnabled)
|
if (!accessibilityEnabled)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user