diff options
| author | Antonin Hildebrand | 2014-08-26 13:16:04 +0200 | 
|---|---|---|
| committer | Antonin Hildebrand | 2014-08-26 13:20:37 +0200 | 
| commit | 549b3ef29edd64d3911968d381712500295da655 (patch) | |
| tree | 7e2f53f574a9231199fbfeb0e3e2b2be3769d9e8 | |
| parent | f3a8a9a95aad78ef4b15aacb4c9d5807bccd974f (diff) | |
| download | MASShortcut-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
| -rw-r--r-- | MASShortcutView.m | 2 | 
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; | 
