mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 02:56:23 +08:00
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:
@@ -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]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user