Browse Source

Add accessibility identifier for Shortcut Control.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
b44bd31b76
  1. 4
      Clocker/Preferences/General/PreferencesViewController.swift

4
Clocker/Preferences/General/PreferencesViewController.swift

@ -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,

Loading…
Cancel
Save