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