Jelajahi Sumber

Apply suggestions from code review

Co-Authored-By: Aleksander Nowodzinski <a.nowodzinski@cksource.com>
Kuba Niegowski 5 tahun lalu
induk
melakukan
c9caf6ab79
1 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 6 6
      packages/ckeditor5-table/src/tablenavigation.js

+ 6 - 6
packages/ckeditor5-table/src/tablenavigation.js

@@ -125,19 +125,19 @@ export default class TableNavigation extends Plugin {
 
 
 			let cellToFocus;
 			let cellToFocus;
 
 
-			// Move to first cell in next row.
+			// Move to the first cell in the next row.
 			if ( isForward && isLastCellInRow ) {
 			if ( isForward && isLastCellInRow ) {
 				const nextRow = table.getChild( currentRowIndex + 1 );
 				const nextRow = table.getChild( currentRowIndex + 1 );
 
 
 				cellToFocus = nextRow.getChild( 0 );
 				cellToFocus = nextRow.getChild( 0 );
 			}
 			}
-			// Move to last cell in a previous row.
+			// Move to the last cell in the previous row.
 			else if ( !isForward && isFirstCellInRow ) {
 			else if ( !isForward && isFirstCellInRow ) {
 				const previousRow = table.getChild( currentRowIndex - 1 );
 				const previousRow = table.getChild( currentRowIndex - 1 );
 
 
 				cellToFocus = previousRow.getChild( previousRow.childCount - 1 );
 				cellToFocus = previousRow.getChild( previousRow.childCount - 1 );
 			}
 			}
-			// Move to next/previous cell.
+			// Move to the next/previous cell.
 			else {
 			else {
 				cellToFocus = tableRow.getChild( currentCellIndex + ( isForward ? 1 : -1 ) );
 				cellToFocus = tableRow.getChild( currentCellIndex + ( isForward ? 1 : -1 ) );
 			}
 			}
@@ -283,9 +283,9 @@ export default class TableNavigation extends Plugin {
 	}
 	}
 
 
 	/**
 	/**
-	 * Checks if {@link module:engine/model/element~Element element} placed next to the current
-	 * {@link module:engine/model/selection~Selection model selection} exists and is marked in
-	 * {@link module:engine/model/schema~Schema schema} as `object`.
+	 * Checks if there is an {@link module:engine/model/element~Element element} next to the current
+	 * {@link module:engine/model/selection~Selection model selection} marked in
+	 * {@link module:engine/model/schema~Schema schema} as an `object`.
 	 *
 	 *
 	 * @private
 	 * @private
 	 * @param {module:engine/model/selection~Selection} modelSelection The selection.
 	 * @param {module:engine/model/selection~Selection} modelSelection The selection.