diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTableContent.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 433ac25c..11c3d1df 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -1663,7 +1663,13 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper } } else { - isDesc = NO; + // When the column is not sorted, allow to sort in reverse order using Shift+click + NSUInteger modifierFlags = [[NSApp currentEvent] modifierFlags]; + if (modifierFlags & NSShiftKeyMask) { + isDesc = YES; + } else { + isDesc = NO; + } [[tableContentView onMainThread] setIndicatorImage:nil inTableColumn:[tableContentView tableColumnWithIdentifier:[NSString stringWithFormat:@"%lld", (long long)[sortCol integerValue]]]]; |