Skip to content

Instantly share code, notes, and snippets.

@angerman
Created March 11, 2009 06:38
Show Gist options
  • Save angerman/77348 to your computer and use it in GitHub Desktop.
Save angerman/77348 to your computer and use it in GitHub Desktop.
-- replace onward from line 429 of CPTextField
element.onblur = function ()
{
console.log("blur start");
[self setObjectValue:element.value];
[self sendAction:[self action] to:[self target]];
[[self window] makeFirstResponder:nil];
[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
console.log("blur end");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment