mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-21 01:40:41 +00:00
Resign as first responder only if CPSearchField and its super agree to.
This commit is contained in:
@@ -475,10 +475,7 @@ var RECENT_SEARCH_PREFIX = @" ";
|
||||
|
||||
- (BOOL)resignFirstResponder
|
||||
{
|
||||
if (_canResignFirstResponder)
|
||||
[super resignFirstResponder];
|
||||
|
||||
return _canResignFirstResponder;
|
||||
return _canResignFirstResponder && [super resignFirstResponder];
|
||||
}
|
||||
|
||||
- (void)mouseDown:(CPEvent)anEvent
|
||||
|
||||
Reference in New Issue
Block a user