diff --git a/select2.js b/select2.js index 39718278..68c0db71 100644 --- a/select2.js +++ b/select2.js @@ -2076,8 +2076,12 @@ the specific language governing permissions and limitations under the Apache Lic return; } - if (this.opts.openOnEnter === false && e.which === KEY.ENTER) { - return; + if (e.which === KEY.ENTER) { + if (this.opts.openOnEnter === false) { + return; + } else if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) { + return; + } } this.open();