Browse Source

Add WebUI support for Mac ⌘ (Command) key

The Command key will now be recognized for WebUI Table multi-selection, as Ctrl is.
adaptive-webui-19844
Thomas Piccirello 7 years ago
parent
commit
232f0f4b0b
  1. 4
      src/webui/www/private/scripts/dynamicTable.js

4
src/webui/www/private/scripts/dynamicTable.js

@ -648,8 +648,8 @@ var DynamicTable = new Class({
}); });
tr.addEvent('click', function(e) { tr.addEvent('click', function(e) {
e.stop(); e.stop();
if (e.control) { if (e.control || e.meta) {
// CTRL key was pressed // CTRL/CMD ⌘ key was pressed
if (this._this.isRowSelected(this.rowId)) if (this._this.isRowSelected(this.rowId))
this._this.deselectRow(this.rowId); this._this.deselectRow(this.rowId);
else else

Loading…
Cancel
Save