Browse Source

Ctrl-Y alternative to undo

Juliette ELSASS 1 năm trước cách đây
mục cha
commit
7910760f0e
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      lazpaint/lazpaintmainform.pas

+ 6 - 0
lazpaint/lazpaintmainform.pas

@@ -1901,6 +1901,12 @@ begin
       if EditDeselect.Execute then
       if EditDeselect.Execute then
         Key := 0;
         Key := 0;
     end else
     end else
+    if (Key = VK_Y) and snapPressed and EditRedo.Enabled then
+    begin
+      EditRedo.Execute;
+      Key := 0;
+    end
+    else
     if LazPaintInstance.ImageListWindowVisible then
     if LazPaintInstance.ImageListWindowVisible then
       LazPaintInstance.ImageListWindowVisibleKeyDown(Key,Shift);
       LazPaintInstance.ImageListWindowVisibleKeyDown(Key,Shift);
     If Key = 0 then UpdateToolbar;
     If Key = 0 then UpdateToolbar;