1
0
mirror of synced 2024-11-30 00:26:03 +03:00

prevent form from being submitted when enter is pressed in multiselect. fixes #961

This commit is contained in:
Igor Vaynberg 2013-03-14 11:14:37 -07:00
parent dd34cc5d67
commit 911a0bb082

View File

@ -2155,6 +2155,12 @@ the specific language governing permissions and limitations under the Apache Lic
// prevent the page from scrolling // prevent the page from scrolling
killEvent(e); killEvent(e);
} }
if (e.which === KEY.ENTER) {
// prevent form from being submitted
killEvent(e);
}
})); }));
this.search.bind("keyup", this.bind(this.resizeSearch)); this.search.bind("keyup", this.bind(this.resizeSearch));