Using custom supressable dialog to check for autotype capabilities. Added notification when user performs autotype on disabled systems

This commit is contained in:
Michael Starke
2018-11-12 17:46:05 +01:00
parent 2d27fcbbb0
commit 04ffcab15b
9 changed files with 97 additions and 14 deletions

View File

@@ -116,6 +116,7 @@
[self.autotypeStackView setVisibilityPriority:NSStackViewVisibilityPriorityMustHold forView:self.openPreferencesButton];
}
/*
NSArray <NSControl *> *controls = @[ self.enableGlobalAutotypeCheckBox,
self.hotKeyTextField,
self.matchTitleCheckBox,
@@ -126,10 +127,10 @@
for(NSControl *control in controls) {
control.enabled = hasAutotypeSupport;
}
*/
}
- (void)openAccessibiltyPreferences:(id)sender {
[NSWorkspace.sharedWorkspace openURL:[NSURL URLWithString:@"x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"]];
[MPAutotypeDaemon.defaultDaemon openAccessibiltyPreferences];
}
@end