From c2edb061df742199a55892f69fa582bb8a6d9b1c Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 20 Nov 2012 23:38:25 +0000 Subject: - Fix exceptions when using the content filter table clear button --- Source/SPTableContent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index d44a0558..9d598ae1 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -1492,7 +1492,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper // Record whether the filter is being triggered by using delete/backspace in the filter field, which // can trigger the effect of clicking the "clear filter" button in the field. // (Keycode 51 is backspace, 117 is delete.) - BOOL deleteTriggeringFilter = ([sender isKindOfClass:[NSSearchField class]] && ([[[sender window] currentEvent] keyCode] == 51 || [[[sender window] currentEvent] keyCode] == 117)); + BOOL deleteTriggeringFilter = ([sender isKindOfClass:[NSSearchField class]] && [[[sender window] currentEvent] type] == NSKeyDown && ([[[sender window] currentEvent] keyCode] == 51 || [[[sender window] currentEvent] keyCode] == 117)); #ifndef SP_REFACTOR -- cgit v1.2.3