소스 검색

call CatchToolKey instead of ToolManager

Johann ELSASS 2 년 전
부모
커밋
cb6827e31e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lazpaint/lazpaintmainform.pas

+ 2 - 2
lazpaint/lazpaintmainform.pas

@@ -3911,12 +3911,12 @@ procedure TFMain.UpdateSpecialKeys(Shift: TShiftState);
   begin
     if (AShift in Shift) and not APressed then
     begin
-      if ToolManager.ToolKeyDown(ACode) then PaintPictureNow;
+      if CatchToolKeyDown(ACode) then PaintPictureNow;
       APressed:= true;
     end else
     if not (AShift in Shift) and APressed then
     begin
-      if ToolManager.ToolKeyUp(ACode) then PaintPictureNow;
+      if CatchToolKeyUp(ACode) then PaintPictureNow;
       APressed:= false;
     end;
   end;