Sfoglia il codice sorgente

:art: fix https://github.com/siyuan-note/siyuan/issues/9718

Vanessa 1 anno fa
parent
commit
82a0932102
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/src/protyle/render/av/keydown.ts

+ 2 - 2
app/src/protyle/render/av/keydown.ts

@@ -34,7 +34,7 @@ export const avKeydown = (event: KeyboardEvent, nodeElement: HTMLElement, protyl
             return true;
             return true;
         }
         }
         let newCellElement;
         let newCellElement;
-        if (event.key === "ArrowLeft") {
+        if (event.key === "ArrowLeft" || matchHotKey("⇧⇥", event)) {
             const previousRowElement = rowElement.previousElementSibling;
             const previousRowElement = rowElement.previousElementSibling;
             if (selectCellElement.previousElementSibling && !selectCellElement.previousElementSibling.classList.contains("av__firstcol")) {
             if (selectCellElement.previousElementSibling && !selectCellElement.previousElementSibling.classList.contains("av__firstcol")) {
                 if (selectCellElement.previousElementSibling.classList.contains("av__cell")) {
                 if (selectCellElement.previousElementSibling.classList.contains("av__cell")) {
@@ -54,7 +54,7 @@ export const avKeydown = (event: KeyboardEvent, nodeElement: HTMLElement, protyl
             event.preventDefault();
             event.preventDefault();
             return true;
             return true;
         }
         }
-        if (event.key === "ArrowRight") {
+        if (event.key === "ArrowRight" || matchHotKey("⇥", event)) {
             const nextRowElement = rowElement.nextElementSibling;
             const nextRowElement = rowElement.nextElementSibling;
             if (selectCellElement.nextElementSibling && selectCellElement.nextElementSibling.classList.contains("av__cell")) {
             if (selectCellElement.nextElementSibling && selectCellElement.nextElementSibling.classList.contains("av__cell")) {
                 newCellElement = selectCellElement.nextElementSibling;
                 newCellElement = selectCellElement.nextElementSibling;