mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 03:50:20 -07:00
WebUI: fix wrong property for keyboard keys
Fix up 2d9e3b3330
.
PR #21182.
This commit is contained in:
parent
d9667b5221
commit
b1d2b9d02b
1 changed files with 3 additions and 3 deletions
|
@ -224,7 +224,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
|
|
||||||
const onDrag = function(el, event) {
|
const onDrag = function(el, event) {
|
||||||
if (this.currentHeaderAction === "resize") {
|
if (this.currentHeaderAction === "resize") {
|
||||||
let width = this.startWidth + (event.page.x - this.dragStartX);
|
let width = this.startWidth + (event.event.pageX - this.dragStartX);
|
||||||
if (width < 16)
|
if (width < 16)
|
||||||
width = 16;
|
width = 16;
|
||||||
this.columns[this.resizeTh.columnName].width = width;
|
this.columns[this.resizeTh.columnName].width = width;
|
||||||
|
@ -743,14 +743,14 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
if (e.control || e.meta) {
|
if (e.ctrlKey || e.metaKey) {
|
||||||
// CTRL/CMD ⌘ 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
|
||||||
this._this.selectRow(this.rowId);
|
this._this.selectRow(this.rowId);
|
||||||
}
|
}
|
||||||
else if (e.shift && (this._this.selectedRows.length === 1)) {
|
else if (e.shiftKey && (this._this.selectedRows.length === 1)) {
|
||||||
// Shift key was pressed
|
// Shift key was pressed
|
||||||
this._this.selectRows(this._this.getSelectedRowId(), this.rowId);
|
this._this.selectRows(this._this.getSelectedRowId(), this.rowId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue