Support the "Enter" key on list widget

pull/210/head
Michael Jett 2012-09-25 13:24:38 -04:00
parent 8fc6b2b680
commit 84cedbb45e
1 changed files with 8 additions and 1 deletions

View File

@ -60,7 +60,14 @@
}),
events:{
"click button": "addItem"
"click button":"addItem",
"keypress input":function (e) {
if (e.which == 13) {
this.addItem();
e.preventDefault();
$("input", this.$el).focus();
}
}
},
initialize:function () {