From 78f82e0609dbd76bda3051cf6f5db4d1ed693739 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 18 Jul 2015 23:00:33 +0200 Subject: Fix an issue where LIKE filters were changed to BINARY if reloading a table via cmd+R MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Even though BINARY should only be enabled when holding down ⇧ while doing the search, it actually did react to ctrl,cmd and alt, too. Fixes #2179 --- Source/SPTableContent.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/SPTableContent.m') diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index b3f4d385..905e9f48 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -1103,8 +1103,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper // If the clause has the placeholder $BINARY that placeholder will be replaced // by BINARY if the user pressed ⇧ while invoking 'Filter' otherwise it will // replaced by @"". - BOOL caseSensitive = (([[[NSApp onMainThread] currentEvent] modifierFlags] - & (NSShiftKeyMask|NSControlKeyMask|NSAlternateKeyMask|NSCommandKeyMask)) > 0); + BOOL caseSensitive = (([[[NSApp onMainThread] currentEvent] modifierFlags] & NSShiftKeyMask) > 0); if(contentFilters == nil) { NSLog(@"Fatal error while retrieving content filters. No filters found."); -- cgit v1.2.3