mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Set focus by right mouse button (Qt)
(cherry picked from commit b99af5fc32)
This commit is contained in:
parent
515060f869
commit
7d895fb6aa
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue