From 7f24e77cfcfa90f70505c8556ce059e3befd5be1 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 15 Jan 2015 18:16:27 +0100 Subject: Disallow ctrl click to select when selection not allowed --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index f28c24fda87..c5c665cee77 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -323,7 +323,7 @@ */ _onClickFile: function(event) { var $tr = $(event.target).closest('tr'); - if (event.ctrlKey || event.shiftKey) { + if (this._allowSelection && (event.ctrlKey || event.shiftKey)) { event.preventDefault(); if (event.shiftKey) { var $lastTr = $(this._lastChecked); -- cgit v1.2.3