aboutsummaryrefslogtreecommitdiff
path: root/osx.m
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2017-09-20 16:38:31 +0100
committerSimon Tatham <anakin@pobox.com>2017-09-20 18:03:44 +0100
commitd72db91888c1efddd56c67eee665b0a83c9329eb (patch)
treead55626ee7c32ec425099a6da0ef9338f400c3cd /osx.m
parente4d05c36d996c3053a66ca29cfe84e9652d501e3 (diff)
downloadpuzzles-d72db91888c1efddd56c67eee665b0a83c9329eb.zip
puzzles-d72db91888c1efddd56c67eee665b0a83c9329eb.tar.gz
puzzles-d72db91888c1efddd56c67eee665b0a83c9329eb.tar.bz2
puzzles-d72db91888c1efddd56c67eee665b0a83c9329eb.tar.xz
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.
Diffstat (limited to 'osx.m')
-rw-r--r--osx.m4
1 files changed, 4 insertions, 0 deletions
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];
}
}