MacOSX Double / Triple Click Fix

This patch corrects issues with double click and adds triple click to
MacOSX. Double click was functioning but double clicking and then
dragging would not work.

Triple clicking now selects an entire line and double clicking and dragging now adds words to the selection correctly.

Fixes Bug: 3784