added: option for keeping selection while selecting another item

This commit is contained in:
Vincent Génieux
2015-04-26 16:10:14 +05:30
parent 063756461b
commit b829906ff2
+2 -1
View File
@@ -90,7 +90,8 @@
}
this.prev_dir = itfunc;
return;
} else if (!this.ctrl_pressed && (!this.last_selection || !this.last_selection.is($row))) {
} else if (!(this.options.keep_selection || this.ctrl_pressed) &&
(!this.last_selection || !this.last_selection.is($row))) {
this.clear_selection();
}
this.last_selection = $row;