ソースを参照

SPACE key allowed in text shape

circular17 6 年 前
コミット
ce9741dd21
1 ファイル変更7 行追加0 行削除
  1. 7 0
      lazpaint/tools/utoolvectorial.pas

+ 7 - 0
lazpaint/tools/utoolvectorial.pas

@@ -968,6 +968,7 @@ end;
 function TEditShapeTool.ToolKeyDown(var key: Word): TRect;
 var
   handled: boolean;
+  keyUtf8: TUTF8Char;
 begin
   Result:= EmptyRect;
   if (Key = VK_SNAP) or (Key = VK_SNAP2) then Key := VK_CONTROL;
@@ -986,6 +987,12 @@ begin
     include(FShiftState, ssAlt);
     key := 0;
   end else
+  if (Key = VK_SPACE) and (GetEditMode = esmShape) and (GetVectorOriginal.SelectedShape is TTextShape) then
+  begin
+    keyUtf8:= ' ';
+    result := ToolKeyPress(keyUtf8);
+    Key := 0;
+  end else
   begin
     if GetEditMode in [esmShape,esmNoShape] then
     begin