From d72db91888c1efddd56c67eee665b0a83c9329eb Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 20 Sep 2017 16:38:31 +0100 Subject: Map Ctrl-Shift-Z to Redo. This is in addition to the existing keystrokes r, ^R and ^Y. I've become used to Ctrl-Shift-Z in other GUI games, and my fingers keep getting confused when my own puzzles don't handle it the same way. --- osx.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'osx.m') diff --git a/osx.m b/osx.m index fae98c7..be29819 100644 --- a/osx.m +++ b/osx.m @@ -687,6 +687,10 @@ struct frontend { if (c >= '0' && c <= '9' && ([ev modifierFlags] & NSNumericPadKeyMask)) c |= MOD_NUM_KEYPAD; + if (c == 26 && + !((NSShiftKeyMask | NSControlKeyMask) & ~[ev modifierFlags])) + c = UI_REDO; + [self processKey:c]; } } -- cgit v1.1