This PR moves the moveSelectionToStart and moveSelectionToEnd functions to a new utility (scoped to cursor at the package level) and adds friends moveToStartOfSelection and moveToEndOfSelection that will be useful in pubpub.
Test plan:npm start and try out the cursorUtilities storybook entry.
This PR moves the
moveSelectionToStart
andmoveSelectionToEnd
functions to a new utility (scoped tocursor
at the package level) and adds friendsmoveToStartOfSelection
andmoveToEndOfSelection
that will be useful inpubpub
.Test plan:
npm start
and try out thecursorUtilities
storybook entry.