Commit 17a49fd3 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

FileManager: use ctrl to select multiple files easily

parent 352d1830
...@@ -78,7 +78,10 @@ define([ ...@@ -78,7 +78,10 @@ define([
if (ev.defaultPrevented) return; if (ev.defaultPrevented) return;
var t = ev.target; var t = ev.target;
if (t && t.nodeName == "INPUT" && t.type == "checkbox") return; if (t && t.nodeName == "INPUT" && t.type == "checkbox") return;
this.$dispatch("open", {data: this.data}); if (vispa.device.isMac ? ev.metaKey : ev.ctrlKey)
this.selected = !this.selected;
else
this.$dispatch("open", {data: this.data});
}, },
openMenu: function(ev) { openMenu: function(ev) {
if (ev.defaultPrevented) return; if (ev.defaultPrevented) return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment