mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 20:08:49 +01:00
This commit is contained in:
parent
b1e7624357
commit
7b444f65e3
1 changed files with 2 additions and 2 deletions
|
|
@ -1174,7 +1174,7 @@ const fileTreeKeydown = (event: KeyboardEvent) => {
|
|||
}
|
||||
const liElements = Array.from(files.element.querySelectorAll(".b3-list-item--focus"));
|
||||
if (liElements.length === 0) {
|
||||
if (event.key.startsWith("Arrow")) {
|
||||
if (event.key.startsWith("Arrow") && !isCtrl(event)) {
|
||||
const liElement = files.element.querySelector(".b3-list-item");
|
||||
if (liElement) {
|
||||
liElement.classList.add("b3-list-item--focus");
|
||||
|
|
@ -1301,7 +1301,7 @@ const fileTreeKeydown = (event: KeyboardEvent) => {
|
|||
}
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
} else if (!isCtrl(event)) {
|
||||
files.element.querySelector('[select-end="true"]')?.removeAttribute("select-end");
|
||||
files.element.querySelector('[select-start="true"]')?.removeAttribute("select-start");
|
||||
if ((event.key === "ArrowRight" && !liElements[0].querySelector(".b3-list-item__arrow--open") && !liElements[0].querySelector(".b3-list-item__toggle").classList.contains("fn__hidden")) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue