Skip to content

Commit b7a3f95

Browse files
committed
dont open the dropdown on meta keys. fixes select2#314
1 parent 38dae78 commit b7a3f95

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

select2.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@
7171
}
7272
return false;
7373
},
74-
isControl: function (k) {
75-
k = k.which ? k.which : k;
74+
isControl: function (e) {
75+
var k = e.which;
7676
switch (k) {
7777
case KEY.SHIFT:
7878
case KEY.CTRL:
7979
case KEY.ALT:
8080
return true;
8181
}
8282

83-
if (k.metaKey) return true;
83+
if (e.metaKey) return true;
8484

8585
return false;
8686
},
@@ -310,7 +310,7 @@
310310
dataType: options.dataType,
311311
data: data,
312312
type: type,
313-
traditional: traditional,
313+
traditional: traditional,
314314
success: function (data) {
315315
if (requestNumber < requestSequence) {
316316
return;

0 commit comments

Comments
 (0)