From a0d507f2afc7f4c73f25b081883e015e72346029 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(-) diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 4cd21bb1..48200d80 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -1102,8 +1102,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