2006-09-10 21:53:38 +00:00
|
|
|
//
|
|
|
|
// HotKeyControl.m
|
|
|
|
// General
|
|
|
|
//
|
|
|
|
// Created by Zaphod Beeblebrox on 9/4/06.
|
|
|
|
// Copyright 2006 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "HotKeyControl.h"
|
2013-10-11 16:37:45 +00:00
|
|
|
#import <NDHotKey/NDHotKeyEvent.h>
|
2006-09-10 21:53:38 +00:00
|
|
|
|
|
|
|
@implementation HotKeyControl
|
|
|
|
|
|
|
|
- (void)mouseDown:(NSEvent *)theEvent
|
|
|
|
{
|
2013-10-11 16:37:45 +00:00
|
|
|
[self setStringValue:NSLocalizedStringFromTableInBundle(@"Press Key...", nil, [NSBundle bundleForClass:[self class]], @"")];
|
|
|
|
[self setRequiresModifierKeys:YES];
|
|
|
|
[self setReadyForHotKeyEvent:YES];
|
2006-09-10 21:53:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|