mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-11 14:41:51 +08:00
♻️
This commit is contained in:
parent
6a143c699f
commit
f1c20abc88
@ -250,13 +250,12 @@ export class Files extends Model {
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.tagName === "LI") {
|
||||
needFocus = false;
|
||||
if ((event.metaKey || event.ctrlKey) && !event.altKey && !event.shiftKey) {
|
||||
setPanelFocus(this.element.parentElement);
|
||||
target.classList.toggle("b3-list-item--focus");
|
||||
} else {
|
||||
this.setCurrent(target, false);
|
||||
if (target.getAttribute("data-type") === "navigation-file") {
|
||||
needFocus = false;
|
||||
if (event.altKey && !event.metaKey && !event.ctrlKey && !event.shiftKey) {
|
||||
openFileById({
|
||||
id: target.getAttribute("data-node-id"),
|
||||
@ -284,7 +283,6 @@ export class Files extends Model {
|
||||
}
|
||||
} else if (target.getAttribute("data-type") === "navigation-root") {
|
||||
this.getLeaf(target, notebookId);
|
||||
setPanelFocus(this.element.parentElement);
|
||||
}
|
||||
}
|
||||
this.element.querySelector('[select-end="true"]')?.removeAttribute("select-end");
|
||||
|
Loading…
Reference in New Issue
Block a user