FIX: Set focus on the right mouse button click (fixes #2395)

(cherry picked from commit 654eae2e0c)
This commit is contained in:
Alexander Koblov 2025-07-14 20:24:49 +03:00
commit 9bc17f78f0

View file

@ -287,10 +287,10 @@ begin
begin
OnMouseDown(Self, Button, Shift, X, Y);
end;
if not Focused then
begin
if CanSetFocus then SetFocus;
end;
end;
if not Focused then
begin
if CanSetFocus then SetFocus;
end;
end;