فهرست منبع

the enter key can exit shape

Johann 6 سال پیش
والد
کامیت
28666a293b
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      vectoredit/umain.pas

+ 5 - 0
vectoredit/umain.pas

@@ -977,6 +977,11 @@ begin
   begin
     Key := 0;
     DoRedo;
+  end else
+  if (Key = VK_RETURN) and Assigned(vectorOriginal) and Assigned(vectorOriginal.SelectedShape) then
+  begin
+    Key := 0;
+    vectorOriginal.DeselectShape;
   end;
 end;