Skip to content

Commit 3ab1aaf

Browse files
committed
fix select2#1425 ctrl+enter should not open
1 parent ce67f7b commit 3ab1aaf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

select2.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,6 +1909,9 @@ the specific language governing permissions and limitations under the Apache Lic
19091909

19101910
if (e.which == KEY.DOWN || e.which == KEY.UP
19111911
|| (e.which == KEY.ENTER && this.opts.openOnEnter)) {
1912+
1913+
if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) return;
1914+
19121915
this.open();
19131916
killEvent(e);
19141917
return;

0 commit comments

Comments
 (0)