added doing 'redo' by pressing 'undo' button with Ctrl or Shift key
authorHolger Schemel <info@artsoft.org>
Fri, 10 Mar 2017 14:53:58 +0000 (15:53 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:10 +0000 (23:21 +0100)
src/editor.c

index 490be2699d6b2374aa3e6d64b898d728d94b9cf2..5a3d5cfa7f6a451ae55b54c8f5c5d0420284fae4 100644 (file)
@@ -12442,6 +12442,9 @@ static void HandleControlButtons(struct GadgetInfo *gi)
       break;
 
     case GADGET_ID_UNDO:
+      if (button == 1 && GetKeyModState() & (KMOD_Shift|KMOD_Control))
+       button = 3;
+
       if (button == 1 && undo_buffer_steps == 0)
       {
        Request("Undo buffer empty!", REQ_CONFIRM);