Allow enter to select the highlighted suggestion

This commit is contained in:
Nathan Gray 2016-02-24 18:18:03 +00:00
parent ce48b78e54
commit 0fbd48a0db

View File

@ -314,7 +314,7 @@ var et2_taglist = et2_selectbox.extend(
* Handler for keyup, used to start ajax search when we like
*/
_keyup: function(e, taglist, event) {
if(event.which === jQuery.ui.keyCode.ENTER)
if(event.which === jQuery.ui.keyCode.ENTER && taglist.combobox.find('.ms-res-item.ms-res-item-active').length==0)
{
this._query_server = true;
this.taglist.collapse();