aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomáš Znamenáček2014-08-05 16:32:30 +0200
committerTomáš Znamenáček2015-01-07 15:27:50 +0100
commit344d22988f567890a201d58f96c9a2fcde9ce0b0 (patch)
treebf206d2c8c99fa1f47acdb4713dec57173c5af77
parent5d06f0070626608847d5a4089ad2f7244e280a1a (diff)
downloadMASShortcut-344d22988f567890a201d58f96c9a2fcde9ce0b0.tar.bz2
Removed [MASShortcut shouldBypass].
It was never used and the recording can already be cancelled by Esc.
-rw-r--r--Framework/MASShortcut.h1
-rw-r--r--Framework/MASShortcutView.m4
2 files changed, 0 insertions, 5 deletions
diff --git a/Framework/MASShortcut.h b/Framework/MASShortcut.h
index 24bd125..6873dd9 100644
--- a/Framework/MASShortcut.h
+++ b/Framework/MASShortcut.h
@@ -10,7 +10,6 @@
@property (nonatomic, readonly) NSString *keyCodeStringForKeyEquivalent;
@property (nonatomic, readonly) NSString *modifierFlagsString;
@property (nonatomic, readonly) NSData *data;
-@property (nonatomic, readonly) BOOL shouldBypass;
- (instancetype)initWithKeyCode:(NSUInteger)code modifierFlags:(NSUInteger)flags;
diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m
index d45efd3..6f562a5 100644
--- a/Framework/MASShortcutView.m
+++ b/Framework/MASShortcutView.m
@@ -395,10 +395,6 @@ void *kUserDataHint = &kUserDataHint;
weakSelf.recording = NO;
event = nil;
}
- else if (shortcut.shouldBypass) {
- // Command + W, Command + Q, ESC should deactivate recorder
- weakSelf.recording = NO;
- }
else {
// Verify possible shortcut
if (shortcut.keyCodeString.length > 0) {