mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-29 03:18:50 +00:00
Better method of expressing this condition.
This commit is contained in:
1 parent
9ca80df67a
commit
a7ca917abf
1 file changed
+1
-4
@@ -476,10 +476,7 @@ var RECENT_SEARCH_PREFIX = @" ";
|
||||
|
||||
- (BOOL)resignFirstResponder
|
||||
{
|
||||
if (_canResignFirstResponder)
|
||||
return [super resignFirstResponder];
|
||||
|
||||
return NO;
|
||||
return _canResignFirstResponder && [super resignFirstResponder];
|
||||
}
|
||||
|
||||
- (void)mouseDown:(CPEvent)anEvent
|
||||
|
||||
Reference in new issue
Block a user