1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-24 13:34:27 +00:00

Add WebUI support for Mac ⌘ (Command) key

The Command key will now be recognized for WebUI Table multi-selection, as Ctrl is.
This commit is contained in:
Thomas Piccirello 2018-06-05 23:48:36 -04:00
parent 091ad6103e
commit 232f0f4b0b

View File

@ -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