1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-10 02:05:59 +02:00

Triple-click to select line

This commit is contained in:
Brian Fiete 2020-05-16 10:11:04 -07:00
parent 4472449cc4
commit 50244bf400
4 changed files with 52 additions and 33 deletions

View file

@ -743,7 +743,12 @@ namespace Beefy.widgets
//PrintF("~TestStruct() %d\n", mInner.mVal1);
if ((btnCount > 1) && (!mWidgetWindow.IsKeyDown(KeyCode.Shift)))
if ((btn == 0) && (btnCount >= 3) && (!mWidgetWindow.IsKeyDown(KeyCode.Shift)))
{
GetLinePosition(CursorLineAndColumn.mLine, var lineStart, var lineEnd);
mSelection = EditSelection(lineStart, lineEnd);
}
else if ((btn == 0) && (btnCount >= 2) && (!mWidgetWindow.IsKeyDown(KeyCode.Shift)))
{
// Select word
StartSelection();