-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cell selection minor inconsistency #935
Comments
Making a selection with Ctrl key will never be supported, the Shift Home/End was brought because it was asked in issue #794 and it made sense to support it but Ctrl would be a lot more complex to support it and I don't think we every will (we would have to keep every single cell that was clicked and at the moment we can only do range with SlickRange in slick.core). Supporting Ctrl is out of the question for that reason. The Home/End only works vertically when using Shift, because of previous point (which was asked in #794). I the current behavior is coming from the code shown below (without Ctrl is uses Lines 5260 to 5264 in 251c91e
EDIT Testing text selection in VSCode and it looks like instead of Shift+Home to make selection upward, I should have used the Ctrl+Shift+Home key combo instead. Below is what happens in VSCode
So I guess I could change the |
the previous key combo were incorrect, the new combo is the following - `Shift+Home` will select from left most (index 0) to current cell position horizontally - `Shift+End` will select from current cell position until the last cell horizontally - `Ctrl+Shift+Home` will select everything that is on the left side of current cell position and everything on top current position (horizontally left until first cell & vertically left until first row) - `Ctrl+Shift+End` will select everything that is on the right side of current cell position and everything on bottom current position (horizontally right until last cell & vertically right until last row)
Actually it wasn't too complex to modify the code to adapt it and support the correct behavior. I've opened #940 and I made it all work but I have to fix and add some more Cypress E2E tests. The new key combos are shown in the PR with print screens |
fixed and improved by PR #940 and released in v5.5.6 |
Home/End keys move horizontally (on same row), while Ctrl-Home/End move vertically (within the same column).
However, in the CellSelectionModel plugin, Home/End select vertically, while the Ctrl versions are not supported.
This can be seen in the spreadsheet examples.
The text was updated successfully, but these errors were encountered: