Преглед на файлове

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

Alexander Koblov преди 2 месеца
родител
ревизия
654eae2e0c
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/fileviews/ufileviewwithgrid.pas

+ 4 - 4
src/fileviews/ufileviewwithgrid.pas

@@ -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;