Skip to content

Commit 78f82e0

Browse files
committed
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
1 parent de096a3 commit 78f82e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/SPTableContent.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,8 +1103,7 @@ - (NSString *)tableFilterString
11031103
// If the clause has the placeholder $BINARY that placeholder will be replaced
11041104
// by BINARY if the user pressed ⇧ while invoking 'Filter' otherwise it will
11051105
// replaced by @"".
1106-
BOOL caseSensitive = (([[[NSApp onMainThread] currentEvent] modifierFlags]
1107-
& (NSShiftKeyMask|NSControlKeyMask|NSAlternateKeyMask|NSCommandKeyMask)) > 0);
1106+
BOOL caseSensitive = (([[[NSApp onMainThread] currentEvent] modifierFlags] & NSShiftKeyMask) > 0);
11081107

11091108
if(contentFilters == nil) {
11101109
NSLog(@"Fatal error while retrieving content filters. No filters found.");

0 commit comments

Comments
 (0)