Skip to content

Commit

Permalink
Merge pull request #577 from ruilisi/576-cmd-shift-arrow-does-not-wor…
Browse files Browse the repository at this point in the history
…k-in-first-column

Handle edge node condition for 0th column
  • Loading branch information
sanchit3008 authored Jul 22, 2024
2 parents bbdeb3b + a30fc01 commit 1793b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/events/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function moveToEdge(
let r = colDelta === 0 ? selectedLimit : curr;
let c = colDelta === 0 ? curr : selectedLimit;

while (r > 0 && c > 0 && (colDelta === 0 ? r : c) < maxRowCol - 1) {
while (r >= 0 && c >= 0 && (colDelta === 0 ? r : c) < maxRowCol - 1) {
if (
!_.isNil(sheetData?.[r]?.[c]?.v) &&
(_.isNil(sheetData?.[r - rowDelta]?.[c - colDelta]?.v) ||
Expand Down

0 comments on commit 1793b88

Please sign in to comment.