Skip to content

Commit

Permalink
Do not close on select if Ctrl or Meta (Cmd) keys are being held as d…
Browse files Browse the repository at this point in the history
…escribed in #3400 (#5222)

Fixes #3400
  • Loading branch information
carlosabalde authored and kevin-brown committed May 1, 2019
1 parent 2a5f46b commit f6c455c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/select2/dropdown/closeOnSelect.js
Expand Up @@ -21,7 +21,7 @@ define([
var originalEvent = evt.originalEvent;

// Don't close if the control key is being held
if (originalEvent && originalEvent.ctrlKey) {
if (originalEvent && (originalEvent.ctrlKey || originalEvent.metaKey)) {
return;
}

Expand Down

0 comments on commit f6c455c

Please sign in to comment.