From 82a09321027342a8d412341d3cde2d304fd6a814 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 22 Nov 2023 16:27:33 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9718 --- app/src/protyle/render/av/keydown.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/render/av/keydown.ts b/app/src/protyle/render/av/keydown.ts index 378e2121e..ffc032751 100644 --- a/app/src/protyle/render/av/keydown.ts +++ b/app/src/protyle/render/av/keydown.ts @@ -34,7 +34,7 @@ export const avKeydown = (event: KeyboardEvent, nodeElement: HTMLElement, protyl return true; } let newCellElement; - if (event.key === "ArrowLeft") { + 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")) { @@ -54,7 +54,7 @@ export const avKeydown = (event: KeyboardEvent, nodeElement: HTMLElement, protyl event.preventDefault(); return true; } - if (event.key === "ArrowRight") { + if (event.key === "ArrowRight" || matchHotKey("⇥", event)) { const nextRowElement = rowElement.nextElementSibling; if (selectCellElement.nextElementSibling && selectCellElement.nextElementSibling.classList.contains("av__cell")) { newCellElement = selectCellElement.nextElementSibling;