import {$isTableRowNode} from './LexicalTableRowNode';
import {$isTableSelection} from './LexicalTableSelection';
import {$computeTableMap, $getNodeTriplet} from './LexicalTableUtils';
+import {$selectOrCreateAdjacent} from "../../utils/nodes";
const LEXICAL_ELEMENT_KEY = '__lexicalTableSelection';
false,
);
} else {
- tableNode.selectPrevious();
+ $selectOrCreateAdjacent(tableNode, false);
}
return true;
true,
);
} else {
- tableNode.selectNext();
+ $selectOrCreateAdjacent(tableNode, true);
}
return true;