From 76b752d5ea4b8eeb5c1d76b7ceb4eb8b63708154 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sun, 12 Aug 2012 12:34:41 +0200 Subject: .osx: Enable scroll to zoom --- .osx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.osx b/.osx index 32182ce..f659e06 100755 --- a/.osx +++ b/.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 -- cgit v1.2.3