Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

.osx: Enable scroll to zoom

  • Loading branch information...
commit 76b752d5ea4b8eeb5c1d76b7ceb4eb8b63708154 1 parent b9fa939
@mathiasbynens authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.