Skip to content


Browse files Browse the repository at this point in the history
Fix an issue where LIKE filters were changed to BINARY if reloading a…
… table via cmd+R

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
  • Loading branch information
dmoagx committed Jul 18, 2015
1 parent de096a3 commit 78f82e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/SPTableContent.m
Expand Up @@ -1103,8 +1103,7 @@ - (NSString *)tableFilterString
// 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.");
Expand Down

0 comments on commit 78f82e0

Please sign in to comment.