Permalink
Browse files

.osx: Enable scroll to zoom

  • Loading branch information...
1 parent b9fa939 commit 76b752d5ea4b8eeb5c1d76b7ceb4eb8b63708154 @mathiasbynens committed Aug 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 .osx
View
6 .osx
@@ -105,6 +105,12 @@ sudo chmod 444 /private/var/db/.AccessibilityAPIEnabled
# TODO: avoid GUI password prompt somehow (http://apple.stackexchange.com/q/60476/4408)
#sudo osascript -e 'tell application "System Events" to set UI elements enabled to true'
+# Use scroll gesture with the Ctrl (^) modifier key to zoom
+defaults write com.apple.universalaccess 'closeViewScrollWheelToggle' -bool true
+defaults write com.apple.universalaccess 'HIDScrollZoomModifierMask' -int 262144
+# Follow the keyboard focus while zoomed in
+defaults write com.apple.universalaccess 'closeViewZoomFollowsFocus' -bool true
+
# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

0 comments on commit 76b752d

Please sign in to comment.