aboutsummaryrefslogtreecommitdiffstats
path: root/MASShortcutView.m
diff options
context:
space:
mode:
authorAntonin Hildebrand2014-08-26 13:16:04 +0200
committerAntonin Hildebrand2014-08-26 13:20:37 +0200
commit549b3ef29edd64d3911968d381712500295da655 (patch)
tree7e2f53f574a9231199fbfeb0e3e2b2be3769d9e8 /MASShortcutView.m
parentf3a8a9a95aad78ef4b15aacb4c9d5807bccd974f (diff)
downloadMASShortcut-549b3ef29edd64d3911968d381712500295da655.tar.bz2
allow [MODIFIER]+ESC shortcuts
only naked ESC without modifiers should cancel editing http://discuss.binaryage.com/t/cant-change-activation-key-to-control-esc tested in TotalTerminal codebase
Diffstat (limited to 'MASShortcutView.m')
-rw-r--r--MASShortcutView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/MASShortcutView.m b/MASShortcutView.m
index 82f4b4b..96dcc86 100644
--- a/MASShortcutView.m
+++ b/MASShortcutView.m
@@ -359,7 +359,7 @@ void *kUserDataHint = &kUserDataHint;
weakSelf.recording = NO;
event = nil;
}
- else if (shortcut.keyCode == kVK_Escape) {
+ else if (shortcut.keyCode == kVK_Escape && !shortcut.modifierFlags) {
// Cancel recording
weakSelf.recording = NO;
event = nil;