1

In MacOS, in the Accessibility widget (in System Preferences) if you scroll all the way down to 'Mouse & Trackpad', and then click on the 'Trackpad Options' button, there is a by-default-unchecked box for 'Enable Dragging'. This option is what allows you to "tap and drag" a window around using its titlebar.

I need to know the command line for checking that box. Can anyone help? Thanks!

3

The easy way to find the plist key for a given preference is to open a Finder window of ~/Library/Preferences, set it to List View, sorted by Date Modified.

Then, set the preference and see what file gets modified.

From that, I get two almost identical files modified (on 10.14.5):

com.apple.driver.AppleBluetoothMultitouch.trackpad.plist
com.apple.AppleMultitouchTrackpad.plist

They contain the following relevant keys:

<key>DragLock</key>
<false/>
<key>Dragging</key>
<false/>
<key>TrackpadThreeFingerDrag</key>
<false/>

so you can set these keys directly with defaults:

defaults write com.apple.AppleMultitouchTrackpad Dragging -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool true

You can include three-finger dragging or Drag Lock, if that's what you want with similar commands.

| improve this answer | |
  • Didn't work for me on Mojave. – sepehr Nov 24 '19 at 0:43
  • @sepehr Which bit? Which files were modified when you changed the prefs? Did the plists contain any relevant keys? – benwiggy Nov 24 '19 at 8:36
  • Setting the keys directly with defaults. I haven't yet checked the plists to be honest. – sepehr Nov 25 '19 at 10:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .