Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
deundrewilliams committed Mar 17, 2022
1 parent 1c3192d commit 57ebde4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/obonode/obojobo-chunks-table/editor-registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ const plugins = {
// If moving left but already at leftmost cell, move to end of the row above
return [node, row - 1, numCols - 1]
} else if (direction === 'up' && Node.has(editor, [node - 1])) {
// Move to node above table
return [node - 1]
} else if (direction === 'down' && Node.has(editor, [node + 1])) {
// Move to node below table
return [node + 1]
}

Expand Down

0 comments on commit 57ebde4

Please sign in to comment.