mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 01:08:07 +02:00
Mouse double click select word, triple click select line
This commit is contained in:
parent
c893233359
commit
12bc05d2b4
@ -3748,7 +3748,7 @@ begin
|
||||
LocalMenu(P);
|
||||
ClearEvent(Event);
|
||||
end else
|
||||
if Event.Buttons=mbLeftButton then
|
||||
if (Event.Buttons=mbLeftButton) and not(Event.Double or Event.Triple) then
|
||||
begin
|
||||
GetMousePos(P);
|
||||
StartP:=P;
|
||||
@ -3762,6 +3762,17 @@ begin
|
||||
DrawView;
|
||||
until not MouseEvent(Event, evMouseMove+evMouseAuto);
|
||||
DrawView;
|
||||
ClearEvent(Event);
|
||||
end else
|
||||
if (Event.Buttons=mbLeftButton) and (Event.Double) then
|
||||
begin
|
||||
SelectWord;
|
||||
ClearEvent(Event);
|
||||
end else
|
||||
if (Event.Buttons=mbLeftButton) and (Event.Triple) then
|
||||
begin
|
||||
SelectLine;
|
||||
ClearEvent(Event);
|
||||
end;
|
||||
evKeyDown :
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user