Improve support for ctrl-click selection creation

Now supports double/triple clicks and alt-drag to create
word/line/rectangle selections in addition to the existing
selection.

Issue #2257