Support the "Enter" key on list widget
parent
8fc6b2b680
commit
84cedbb45e
|
@ -60,7 +60,14 @@
|
||||||
}),
|
}),
|
||||||
|
|
||||||
events:{
|
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 () {
|
initialize:function () {
|
||||||
|
|
Loading…
Reference in New Issue