Browse files

.osx: Enable access for assistive devices

  • Loading branch information...
1 parent 06c9e88 commit b9fa939cefe4f76336ce12ab83108c4e1d00e242 @mathiasbynens committed Aug 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 .osx
6 .osx
@@ -99,6 +99,12 @@ defaults write "Apple Bitpool Min (editable)" -int
# (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
+# Enable access for assistive devices
+echo -n 'a' | sudo tee /private/var/db/.AccessibilityAPIEnabled > /dev/null 2>&1
+sudo chmod 444 /private/var/db/.AccessibilityAPIEnabled
+# TODO: avoid GUI password prompt somehow (
+#sudo osascript -e 'tell application "System Events" to set UI elements enabled to true'
# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

0 comments on commit b9fa939

Please sign in to comment.