From 48ad08f610c77e2c8d34d2bd08d56147f057e001 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sun, 8 May 2011 17:31:49 +0000 Subject: =?UTF-8?q?=E2=80=A2=20send=20current=20event=20after=20displaying?= =?UTF-8?q?=20field=20editor=20sheet=20for=20editing=20table=20cells=20-?= =?UTF-8?q?=20fixes=20i1022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPCustomQuery.m | 4 ++++ Source/SPTableContent.m | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'Source') 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; } -- cgit v1.2.3