feat(core): add shortcut for multi select docs (#6318)

close TOV-701
In All Doc, `Shift + Click` has been added to activate the multiple selection state.
This commit is contained in:
JimmFly
2024-03-29 01:40:23 +00:00
parent 0ce6401a6f
commit 1a873ecf3c
10 changed files with 63 additions and 15 deletions
@@ -20,6 +20,9 @@ export const WorkbenchLink = ({
(event: React.MouseEvent<HTMLAnchorElement>) => {
event.preventDefault();
event.stopPropagation();
if (onClick?.(event)) {
return;
}
if (event.ctrlKey || event.metaKey) {
if (appSettings.enableMultiView && environment.isDesktop) {
@@ -34,7 +37,6 @@ export const WorkbenchLink = ({
} else {
workbench.open(to);
}
onClick?.(event);
},
[appSettings.enableMultiView, basename, onClick, to, workbench]
);