projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d9e85
)
added doing 'redo' by pressing 'undo' button with Ctrl or Shift key
author
Holger Schemel
<info@artsoft.org>
Fri, 10 Mar 2017 14:53:58 +0000
(15:53 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Mar 2018 22:21:10 +0000
(23:21 +0100)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index 490be2699d6b2374aa3e6d64b898d728d94b9cf2..5a3d5cfa7f6a451ae55b54c8f5c5d0420284fae4 100644
(file)
--- 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);