This PR implements three selection modes: char, word, and line and makes selection work in the same way as in Putty.
Fixes # 170 (partially, there is no scrolling on selection yet)
Type of change
[X] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Moving the mouse with pressed left button selects text in char mode, that is, char by char.
Double click selects word under the mouse pointer. If don't release the mouse button after the second click and start dragging the mouse then the text will be selected in word mode (whole words are selected).
Triple click selects the whole line under the mouse pointer. If don't release the mouse button after the third click and start dragging the mouse then the text will be selected in line mode (whole lines are selected).
Description
This PR implements three selection modes: char, word, and line and makes selection work in the same way as in Putty.
Fixes # 170 (partially, there is no scrolling on selection yet)
Type of change
How Has This Been Tested?
char
mode, that is, char by char.word
mode (whole words are selected).line
mode (whole lines are selected).Test Configuration:
Windows
andLinux