summaryrefslogtreecommitdiffstats
path: root/slick.grid.js
diff options
context:
space:
mode:
Diffstat (limited to 'slick.grid.js')
-rw-r--r--slick.grid.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/slick.grid.js b/slick.grid.js
index 7f53536..fd954d5 100644
--- a/slick.grid.js
+++ b/slick.grid.js
@@ -1701,14 +1701,14 @@ if (!jQuery.fn.drag) {
var selection = getSelectedRows();
var idx = $.inArray(row, selection);
- if (!e.ctrlKey && !e.shiftKey) {
+ if (!e.ctrlKey && !e.shiftKey && !e.metaKey) {
selection = [row];
}
else if (options.multiSelect) {
- if (idx === -1 && e.ctrlKey) {
+ if (idx === -1 && (e.ctrlKey || e.metaKey)) {
selection.push(row);
}
- else if (idx !== -1 && e.ctrlKey) {
+ else if (idx !== -1 && (e.ctrlKey || e.metaKey)) {
selection = $.grep(selection, function(o, i) { return (o !== row); });
}
else if (selection.length && e.shiftKey) {