mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-05 10:27:04 +08:00
add shift + key to moeve cell focus left to improve keyboard navigation
This commit is contained in:
parent
fa2817fbb7
commit
1b42ddd8eb
@ -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 |
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user