aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-05-26 12:32:51 +0000
committerBibiko <bibiko@eva.mpg.de>2009-05-26 12:32:51 +0000
commit610b3c590dc35bc8e1ea3ef17aa59ba72e8e3d55 (patch)
treef38aa65d79ca4949e3cdb80a998e0a5f19b21ba2
parentbded839057f4f760b0c3cc2d3126aef15bc41cc9 (diff)
downloadsequelpro-610b3c590dc35bc8e1ea3ef17aa59ba72e8e3d55.tar.gz
sequelpro-610b3c590dc35bc8e1ea3ef17aa59ba72e8e3d55.tar.bz2
sequelpro-610b3c590dc35bc8e1ea3ef17aa59ba72e8e3d55.zip
• added key-binding for RETURN to "Add" button in the "add table sheet" via delegate method controlTextDidEndEditing:
-rw-r--r--Source/TablesList.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index 6173a5d2..2866bd3c 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -810,10 +810,13 @@
- (void)controlTextDidEndEditing:(NSNotification *)notification
{
id object = [notification object];
-
+
if (object == tableRenameField) {
[renameTableButton performClick:object];
}
+ if (object == tableNameField) {
+ [addTableButton performClick:object];
+ }
}
#pragma mark Getter methods