fix(registry): Alt + клик тоже переключает выделение задачи
This commit is contained in:
@@ -620,8 +620,8 @@ const TaskRegistry = ({ tasks, relatedTaskTitles = {}, fields, statuses, users =
|
|||||||
|
|
||||||
const handleRowMouseDown = (e: React.MouseEvent) => {
|
const handleRowMouseDown = (e: React.MouseEvent) => {
|
||||||
if (!isAdmin) return;
|
if (!isAdmin) return;
|
||||||
// Предотвращаем браузерное выделение текста при Ctrl/Cmd/Shift + клике
|
// Предотвращаем браузерное выделение текста при Ctrl/Cmd/Shift/Alt + клике
|
||||||
if (e.ctrlKey || e.metaKey || e.shiftKey) {
|
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -632,7 +632,7 @@ const TaskRegistry = ({ tasks, relatedTaskTitles = {}, fields, statuses, users =
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isCtrl = e.ctrlKey || e.metaKey;
|
const isCtrl = e.ctrlKey || e.metaKey || e.altKey;
|
||||||
const isShift = e.shiftKey;
|
const isShift = e.shiftKey;
|
||||||
|
|
||||||
if (isShift && lastSelectedTaskId != null) {
|
if (isShift && lastSelectedTaskId != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user