Bring back enter action for taglist-email widget

This commit is contained in:
Hadi Nategh 2016-06-24 16:27:02 +02:00
parent 54852ea6a7
commit 66f1e302d2

View File

@ -481,7 +481,9 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR
* @returns {Boolean}
*/
_keyup: function(e, taglist, event) {
if(event.which === jQuery.ui.keyCode.ENTER && taglist.combobox.find('.ms-res-item.ms-res-item-active').length==0)
if(event.which === jQuery.ui.keyCode.ENTER
&& taglist.combobox.find('.ms-res-item.ms-res-item-active').length==0
&& this._type !== 'taglist-email')
{
// Change keycode to abort the validation process
// This means enter does not add a tag