2
0
Эх сурвалжийг харах

Ctrl-Y alternative to undo

Juliette ELSASS 1 жил өмнө
parent
commit
7910760f0e

+ 6 - 0
lazpaint/lazpaintmainform.pas

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