FIX: Set focus by right mouse button (Qt)

(cherry picked from commit b99af5fc32)
This commit is contained in:
Alexander Koblov 2024-09-07 13:21:26 +03:00
commit 7d895fb6aa

View file

@ -2140,6 +2140,11 @@ begin
AllowOutboundEvents := False;
inherited MouseDown(Button, Shift, X, Y);
AllowOutboundEvents := True;
if not Focused then
begin
if CanSetFocus then SetFocus;
end;
end;
procedure TDrawGridEx.MouseMove(Shift: TShiftState; X, Y: Integer);