Fixed issue with selectText in CPTextField. Closes issue #295

This commit is contained in:
saikat authored and Ross Boucher committed 2009-10-22 10:07:06 -07:00
1 parent 891d2a28c1
commit e6d1753e74
1 file changed
+2 -2
+2 -2
View File
@@ -597,14 +597,14 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
window.setTimeout(function()
{
element.value = [self stringValue];
element.focus();
CPTextFieldInputOwner = self;
}, 0.0);
//post CPControlTextDidBeginEditingNotification
[self textDidBeginEditing:[CPNotification notificationWithName:CPControlTextDidBeginEditingNotification object:self userInfo:nil]];
element.value = [self stringValue];
[[[self window] platformWindow] _propagateCurrentDOMEvent:YES];
CPTextFieldInputIsActive = YES;