From 57ebde4c37797ceee00c44ec0a4fece6b1e63014 Mon Sep 17 00:00:00 2001 From: Deundre Williams Date: Thu, 17 Mar 2022 13:03:37 -0400 Subject: [PATCH] add comments --- packages/obonode/obojobo-chunks-table/editor-registration.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/obonode/obojobo-chunks-table/editor-registration.js b/packages/obonode/obojobo-chunks-table/editor-registration.js index a3e1e48d85..c3defba7f5 100644 --- a/packages/obonode/obojobo-chunks-table/editor-registration.js +++ b/packages/obonode/obojobo-chunks-table/editor-registration.js @@ -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] }