From 0f0b315f3ba74cfbac7cbf528ce58b72bd484690 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Thu, 24 Jan 2013 15:22:45 -0800 Subject: [PATCH] Fixed bug about the cancel button in CPSearchField (changed the type of the button to CPMomentaryChangeButton) --- AppKit/CPSearchField.j | 1 + 1 file changed, 1 insertion(+) diff --git a/AppKit/CPSearchField.j b/AppKit/CPSearchField.j index bfa44554a..4baef5dc8 100644 --- a/AppKit/CPSearchField.j +++ b/AppKit/CPSearchField.j @@ -189,6 +189,7 @@ var RECENT_SEARCH_PREFIX = @" "; [_cancelButton setAutoresizingMask:CPViewMinXMargin]; [_cancelButton setTarget:self]; [_cancelButton setAction:@selector(cancelOperation:)]; + [_cancelButton setButtonType:CPMomentaryChangeButton]; [self _updateCancelButtonVisibility]; [self addSubview:_cancelButton]; }