emberjs/website — pull request #30 by frodsan (2012-01-10 02:55:03+00:00)
Title: Fixing textfield focusOut and keyUp

Hi, I'm trying to reproduce the Contacts Example.
The focusOut and keyUp property in App.EditField
don't work, unless i make this change:

```javascript
App.TextField = SC.TextField.extend({
didInsertElement: function() {
this.$().focus();
},

focusOut: function() {
this.set('isEditing', false);
},

keyUp: function(evt) {
if (evt.keyCode === 13) {
this.set('isEditing', false);
}
}
});
```

It is a better way to do that without repeating code?