add shift + key to moeve cell focus left to improve keyboard navigation

This commit is contained in:
Gareth B. 2024-07-20 15:31:03 +00:00
parent fa2817fbb7
commit 1b42ddd8eb
2 changed files with 6 additions and 2 deletions

View File

@ -161,5 +161,5 @@ Please refer to [Overall configuration](./config.md) for detailed information.
| ~~SHIFT + Left mouse click~~ | Adjust selection area |
| UP/DOWN/LEFT/RIGHT | Move cell selection box |
| ENTER | Edit cell |
| TAB | Move cell selection box to the right |
| TAB / SHIFT + TAB | Move cell selection box to the right and left |
| DELETE | Clear cell data |

View File

@ -541,7 +541,11 @@ export function handleGlobalKeyDown(
return;
}
moveHighlightCell(ctx, "right", 1, "rangeOfSelect");
if (e.shiftKey) {
moveHighlightCell(ctx, "right", -1, "rangeOfSelect");
} else {
moveHighlightCell(ctx, "right", 1, "rangeOfSelect");
}
e.preventDefault();
} else if (kstr === "F2") {
if (!allowEdit) return;