Selaa lähdekoodia

Ctrl-Y alternative to undo

Juliette ELSASS 1 vuosi sitten
vanhempi
commit
7910760f0e
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      lazpaint/lazpaintmainform.pas

+ 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;