aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomáš Znamenáček2015-12-03 15:15:05 +0100
committerTomáš Znamenáček2015-12-03 15:15:05 +0100
commit29d047c928099a32af5b312192ac9dfb3826d304 (patch)
tree79dcfb9d90c04d3251f3adb027b3e868cf77a41a
parent5a18ccc5e100a43d98ccaf4bdf0ad4f8e49bc76f (diff)
downloadMASShortcut-29d047c928099a32af5b312192ac9dfb3826d304.tar.bz2
Documented that we don’t accept Option-Shift shortcuts by default.
The reason is that Option-Shift shortcuts are often already used by system to insert some special characters. See `MASShortcutValidator` for details, including how to enable support for these shortcuts. Fixes #79.
-rw-r--r--Framework/MASShortcutValidator.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/Framework/MASShortcutValidator.h b/Framework/MASShortcutValidator.h
index cc5f816..95fe828 100644
--- a/Framework/MASShortcutValidator.h
+++ b/Framework/MASShortcutValidator.h
@@ -1,9 +1,23 @@
#import "MASShortcut.h"
+/**
+ This class is used by the recording control to tell which shortcuts are acceptable.
+
+ There are two kinds of shortcuts that are not considered acceptable: shortcuts that
+ are too simple (like single letter keys) and shortcuts that are already used by the
+ operating system.
+*/
@interface MASShortcutValidator : NSObject
-// The following API enable hotkeys with the Option key as the only modifier
-// For example, Option-G will not generate © and Option-R will not paste ®
+/**
+ Set to `YES` if you want to accept Option-something shortcuts.
+
+ `NO` by default, since Option-something shortcuts are often used by system,
+ for example Option-G will type the © sign. This also applies to Option-Shift
+ shortcuts – in other words, shortcut recorder will not accept shortcuts like
+ Option-Shift-K by default. (Again, since Option-Shift-K inserts the Apple
+ logo sign by default.)
+*/
@property(assign) BOOL allowAnyShortcutWithOptionModifier;
+ (instancetype) sharedValidator;