Merge branch 'master' of github.com:280north/cappuccino

This commit is contained in:
Alexander Ljungberg committed 2010-08-29 17:46:47 -04:00
commit 9bc9a49b8f
1 file changed
+4
+4
View File
@@ -278,6 +278,10 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
return;
_isEditable = shouldBeEditable;
if(shouldBeEditable)
_isSelectable = YES;
// We only allow first responder status if the field is editable and enabled.
if (!shouldBeEditable && [[self window] firstResponder] === self)
[[self window] makeFirstResponder:nil];