Refine text selection on OS X.