Fix for issue 841 where the edit cursor would not always flash

This commit is contained in:
Blair Duncan authored and Randall Luecke committed 2010-08-27 19:46:55 -04:00
1 parent 8dd1d20a2d
commit b27560c51e
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];