浏览代码

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;