Support the "Enter" key on list widget

pull/210/head
Michael Jett 12 years ago
parent 8fc6b2b680
commit 84cedbb45e

@ -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 () {

Loading…
Cancel
Save