mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-02 23:08:49 +01:00
This commit is contained in:
parent
e4c3a2d9d0
commit
d04273eb19
1 changed files with 12 additions and 2 deletions
|
|
@ -1226,8 +1226,14 @@ const panelTreeKeydown = (event: KeyboardEvent) => {
|
|||
while (nextElement) {
|
||||
if (nextElement.nextElementSibling) {
|
||||
if (nextElement.nextElementSibling.tagName === "UL") {
|
||||
nextElement = nextElement.nextElementSibling.firstElementChild;
|
||||
} else if (nextElement.nextElementSibling.classList.contains("protyle")) {
|
||||
if (nextElement.nextElementSibling.classList.contains("fn__none")) { // 遇到折叠内容
|
||||
if (nextElement.nextElementSibling.nextElementSibling) {
|
||||
nextElement = nextElement.nextElementSibling.nextElementSibling
|
||||
}
|
||||
} else {
|
||||
nextElement = nextElement.nextElementSibling.firstElementChild;
|
||||
}
|
||||
} else if (nextElement.nextElementSibling.classList.contains("protyle")) { // backlink
|
||||
if (nextElement.nextElementSibling.nextElementSibling) {
|
||||
nextElement = nextElement.nextElementSibling.nextElementSibling;
|
||||
}
|
||||
|
|
@ -1265,6 +1271,10 @@ const panelTreeKeydown = (event: KeyboardEvent) => {
|
|||
if (previousElement.previousElementSibling.previousElementSibling) {
|
||||
previousElement = previousElement.previousElementSibling.previousElementSibling;
|
||||
}
|
||||
} else if (previousElement.previousElementSibling.tagName === "UL" && previousElement.previousElementSibling.classList.contains("fn__none")) { // 遇到折叠内容
|
||||
if (previousElement.previousElementSibling.previousElementSibling) {
|
||||
previousElement = previousElement.previousElementSibling.previousElementSibling;
|
||||
}
|
||||
} else {
|
||||
const liElements = previousElement.previousElementSibling.querySelectorAll(".b3-list-item");
|
||||
previousElement = liElements[liElements.length - 1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue