diff options
author | rowanbeentje <rowan@beent.je> | 2012-11-20 23:38:25 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-11-20 23:38:25 +0000 |
commit | c2edb061df742199a55892f69fa582bb8a6d9b1c (patch) | |
tree | 4ddfc5a6412f3af7282c41c48e3b18566a0424ca | |
parent | a2acd2dfa7eec5724f1c0234ecc03ec20100bde3 (diff) | |
download | sequelpro-c2edb061df742199a55892f69fa582bb8a6d9b1c.tar.gz sequelpro-c2edb061df742199a55892f69fa582bb8a6d9b1c.tar.bz2 sequelpro-c2edb061df742199a55892f69fa582bb8a6d9b1c.zip |
- Fix exceptions when using the content filter table clear button
-rw-r--r-- | Source/SPTableContent.m | 2 |
1 files changed, 1 insertions, 1 deletions
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 |