diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-27 07:08:05 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-27 07:08:05 +0000 |
commit | e03c42246d5b1f926842b900688568776c715cdb (patch) | |
tree | 67992540cb33759202be4b1887ad58c228bcdfc1 /Source/SPTableView.m | |
parent | 68683d597441310bdb92b036171cb7eb436c3563 (diff) | |
download | sequelpro-e03c42246d5b1f926842b900688568776c715cdb.tar.gz sequelpro-e03c42246d5b1f926842b900688568776c715cdb.tar.bz2 sequelpro-e03c42246d5b1f926842b900688568776c715cdb.zip |
• improvement for hitting RETURN or ENTER to invoke the row edit mode
- fixed that the table is selectable again
- hitting ENTER/RETURN are enabled only for TableContent and ask the delegate's tableView:shouldEditTableColumn: method for validation
(by doing so a RETURN/ENTER is the same event as a double-click into a table cell for column 0 if table is in non-editing mode)
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r-- | Source/SPTableView.m | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m index f6af2c16..4d97b6bb 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -59,15 +59,4 @@ return YES; } -- (void)keyDown:(NSEvent *)theEvent -{ - if([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76)) - { - [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES]; - } - else { - [super keyDown:theEvent]; - } -} - @end |