git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a disable/enable method to the hotkey center
[ITKit.git]
/
ITHotKeyCenter.h
diff --git
a/ITHotKeyCenter.h
b/ITHotKeyCenter.h
index
3c8bb4c
..
347110f
100755
(executable)
--- a/
ITHotKeyCenter.h
+++ b/
ITHotKeyCenter.h
@@
-22,10
+22,14
@@
{
NSMutableDictionary* mHotKeys; //Keys are NSValue of EventHotKeyRef
BOOL mEventHandlerInstalled;
{
NSMutableDictionary* mHotKeys; //Keys are NSValue of EventHotKeyRef
BOOL mEventHandlerInstalled;
+ BOOL _enabled;
}
+ (id)sharedCenter;
}
+ (id)sharedCenter;
+- (BOOL)isEnabled;
+- (void)setEnabled:(BOOL)flag;
+
- (BOOL)registerHotKey: (ITHotKey*)hotKey;
- (void)unregisterHotKey: (ITHotKey*)hotKey;
- (BOOL)registerHotKey: (ITHotKey*)hotKey;
- (void)unregisterHotKey: (ITHotKey*)hotKey;