Tip 216Turn Off Drag and Drop

If you find you often accidentally drag and drop text within applications (which is to say, you accidentally select some text and then accidentally drag and drop it to a new location—something especially easy to do with a trackpad), you can turn it off with a secret setting.

To turn it off for all apps, type the following into a Terminal window (open Finder, select the Applications list, and then in the list of applications double-click Terminal within the Utilities folder):

 
defaults write -g NSDragAndDropTextDelay -int -1

Then log out and back in again.

To reactivate for all apps, type the following into a Terminal window:

 
defaults delete -g NSDragAndDropTextDelay

To deactivate it for a particular app, first ...

Get Mac Kung Fu, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.