From: Holger Schemel Date: Fri, 10 Mar 2017 14:53:58 +0000 (+0100) Subject: added doing 'redo' by pressing 'undo' button with Ctrl or Shift key X-Git-Tag: 4.1.0.0~166 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f18c4c632419504895a5e85256094ad9e061c338;p=rocksndiamonds.git added doing 'redo' by pressing 'undo' button with Ctrl or Shift key --- diff --git a/src/editor.c b/src/editor.c index 490be269..5a3d5cfa 100644 --- a/src/editor.c +++ b/src/editor.c @@ -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);