|
|
@ -268,7 +268,9 @@ class PreferencesViewController: ParentViewController { |
|
|
|
|
|
|
|
|
|
|
|
private func setupShortcutObserver() { |
|
|
|
private func setupShortcutObserver() { |
|
|
|
let defaults = NSUserDefaultsController.shared |
|
|
|
let defaults = NSUserDefaultsController.shared |
|
|
|
recorderControl.setAccessibility("ShortcutControl") |
|
|
|
recorderControl.setAccessibilityElement(true) |
|
|
|
|
|
|
|
recorderControl.setAccessibilityIdentifier("ShortcutControl") |
|
|
|
|
|
|
|
recorderControl.setAccessibilityLabel("ShortcutControl") |
|
|
|
recorderControl.bind(NSBindingName.value, |
|
|
|
recorderControl.bind(NSBindingName.value, |
|
|
|
to: defaults, |
|
|
|
to: defaults, |
|
|
|
withKeyPath: PreferencesConstants.hotKeyPathIdentifier, |
|
|
|
withKeyPath: PreferencesConstants.hotKeyPathIdentifier, |
|
|
|