aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-05-08 17:31:49 +0000
committerBibiko <bibiko@eva.mpg.de>2011-05-08 17:31:49 +0000
commit48ad08f610c77e2c8d34d2bd08d56147f057e001 (patch)
tree9e47f76569af9318c519825bf2256c2ac7245b6b
parent75ef02696f362f408efece70ede90a6575abfb5a (diff)
downloadsequelpro-48ad08f610c77e2c8d34d2bd08d56147f057e001.tar.gz
sequelpro-48ad08f610c77e2c8d34d2bd08d56147f057e001.tar.bz2
sequelpro-48ad08f610c77e2c8d34d2bd08d56147f057e001.zip
• send current event after displaying field editor sheet for editing table cells
- fixes i1022
-rw-r--r--Source/SPCustomQuery.m4
-rw-r--r--Source/SPTableContent.m4
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index a67ec5f3..bed5506e 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -3868,6 +3868,10 @@
// Call the field editor sheet
[self tableView:customQueryView shouldEditTableColumn:NSArrayObjectAtIndex([customQueryView tableColumns], column) row:row];
+ // send current event to field editor sheet
+ if([NSApp currentEvent])
+ [NSApp sendEvent:[NSApp currentEvent]];
+
return NO;
}
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 572a430e..6422ff7e 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -4583,6 +4583,10 @@
// Call the field editor sheet
[self tableView:tableContentView shouldEditTableColumn:NSArrayObjectAtIndex([tableContentView tableColumns], column) row:row];
+ // send current event to field editor sheet
+ if([NSApp currentEvent])
+ [NSApp sendEvent:[NSApp currentEvent]];
+
return NO;
}