From 232f0f4b0b028e4bcde80e4fa84f896a1a3817fc Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Tue, 5 Jun 2018 23:48:36 -0400 Subject: [PATCH] =?UTF-8?q?Add=20WebUI=20support=20for=20Mac=20=E2=8C=98?= =?UTF-8?q?=20(Command)=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Command key will now be recognized for WebUI Table multi-selection, as Ctrl is. --- src/webui/www/private/scripts/dynamicTable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index d8dbfb1a9..0825d596f 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -648,8 +648,8 @@ var DynamicTable = new Class({ }); tr.addEvent('click', function(e) { e.stop(); - if (e.control) { - // CTRL key was pressed + if (e.control || e.meta) { + // CTRL/CMD ⌘ key was pressed if (this._this.isRowSelected(this.rowId)) this._this.deselectRow(this.rowId); else