diff options
author | stuconnolly <stuart02@gmail.com> | 2009-10-17 00:35:09 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-10-17 00:35:09 +0000 |
commit | 6a4e2994d17220eb43015162522deec1efdd429b (patch) | |
tree | f1d2abc0691948bcbd901929c82347137ee0de85 /Source/SPOutlineView.m | |
parent | c3eb7de88f2baf7774749f4311a84b75ef833eb7 (diff) | |
download | sequelpro-6a4e2994d17220eb43015162522deec1efdd429b.tar.gz sequelpro-6a4e2994d17220eb43015162522deec1efdd429b.tar.bz2 sequelpro-6a4e2994d17220eb43015162522deec1efdd429b.zip |
Replace the use of hard coded preference keys with constants to prevent issues such as the one fixed in revision 1419. All future preference usage should be done so using these constants.
Diffstat (limited to 'Source/SPOutlineView.m')
-rw-r--r-- | Source/SPOutlineView.m | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/SPOutlineView.m b/Source/SPOutlineView.m index 97f8cab3..cfbb0cc2 100644 --- a/Source/SPOutlineView.m +++ b/Source/SPOutlineView.m @@ -22,10 +22,8 @@ // // More info at <http://code.google.com/p/sequel-pro/> - #import "SPOutlineView.h" - @implementation SPOutlineView - (BOOL)acceptsFirstResponder @@ -33,9 +31,9 @@ return YES; } --(void)keyDown:(NSEvent *)theEvent +- (void)keyDown:(NSEvent *)theEvent { - if([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76)) + if ([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76)) { [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES]; } @@ -43,4 +41,5 @@ [super keyDown:theEvent]; } } + @end |