mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 06:18:49 +01:00
This commit is contained in:
parent
3e49bd8f3f
commit
4c91c92011
1 changed files with 8 additions and 4 deletions
|
|
@ -58,12 +58,16 @@ export const avKeydown = (event: KeyboardEvent, nodeElement: HTMLElement, protyl
|
|||
if (event.key === "ArrowLeft" || matchHotKey("⇧⇥", event)) {
|
||||
const previousRowElement = rowElement.previousElementSibling;
|
||||
if (selectCellElement.previousElementSibling && !selectCellElement.previousElementSibling.classList.contains("av__firstcol")) {
|
||||
if (selectCellElement.previousElementSibling.classList.contains("av__cell")) {
|
||||
newCellElement = selectCellElement.previousElementSibling;
|
||||
} else {
|
||||
if (selectCellElement.previousElementSibling.classList.contains("av__colsticky")) {
|
||||
newCellElement = selectCellElement.previousElementSibling.lastElementChild;
|
||||
if (newCellElement.classList.contains("av__firstcol")) {
|
||||
newCellElement = undefined;
|
||||
}
|
||||
} else if (selectCellElement.previousElementSibling.classList.contains("av__cell")) {
|
||||
newCellElement = selectCellElement.previousElementSibling;
|
||||
}
|
||||
} else if (previousRowElement && !previousRowElement.classList.contains("av__row--header")) {
|
||||
}
|
||||
if (!newCellElement && previousRowElement && !previousRowElement.classList.contains("av__row--header")) {
|
||||
const previousCellElements = previousRowElement.querySelectorAll(".av__cell");
|
||||
newCellElement = previousCellElements[previousCellElements.length - 1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue