Skip to content

Commit

Permalink
Fix the issue where CPSecureTextField would sometimes cause all other…
Browse files Browse the repository at this point in the history
… text fields to go crazy afterwards.
  • Loading branch information
Ross Boucher committed Jun 24, 2010
1 parent 7e25166 commit 7c5a07f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions AppKit/CPTextField.j
Expand Up @@ -807,11 +807,8 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
{
if ([[self window] firstResponder] === self)
window.setTimeout(function() { element.select(); }, 0);
else
{
[[self window] makeFirstResponder:self];
else if ([self window] !== nil && [[self window] makeFirstResponder:self])
window.setTimeout(function() {[self selectText:sender];}, 0);
}
}
#endif
}
Expand Down

0 comments on commit 7c5a07f

Please sign in to comment.