From 3ab1aafae57943fd0508672d9fb42b4b617b189d Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 19 Jun 2013 22:49:35 -0700 Subject: [PATCH] fix #1425 ctrl+enter should not open --- select2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/select2.js b/select2.js index 30b83703..630dd07e 100644 --- a/select2.js +++ b/select2.js @@ -1909,6 +1909,9 @@ the specific language governing permissions and limitations under the Apache Lic if (e.which == KEY.DOWN || e.which == KEY.UP || (e.which == KEY.ENTER && this.opts.openOnEnter)) { + + if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) return; + this.open(); killEvent(e); return;