Skip to content
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

Allow pageup/pagedown/home/end etc during selection #794

Closed
tomqwpl opened this issue Jun 27, 2023 · 2 comments · Fixed by #854
Closed

Allow pageup/pagedown/home/end etc during selection #794

tomqwpl opened this issue Jun 27, 2023 · 2 comments · Fixed by #854
Labels

Comments

@tomqwpl
Copy link
Contributor

tomqwpl commented Jun 27, 2023

The cell selection model allows for selection of range using keyboard, but only left, right, up, down.
Normal navigation can also be done using page up, down, home end etc.

It would be nice of the same keys could be used during selection too.

@ghiscoding
Copy link
Collaborator

If you want to implement it then Pull Requests are welcome

ghiscoding added a commit that referenced this issue Oct 1, 2023
- fixes #794
- adding "pageUp/pageDown/home/end" to SlickCellSelection when using selection with "Shift+{key}"
- add `hasDataView()` and `getViewportRowCount()` methods to SlickGrid and also make `getViewportHeight()` and `getViewportWidth()` as publish methods
- add new `example-spreadsheet-dataview.html` demo to manually test updated Cell Selection feature
ghiscoding added a commit that referenced this issue Oct 3, 2023
…854)

* feat: add pageUp/pageDown/home/end to SlickCellSelection, fixes #794
- fixes #794
- adding "pageUp/pageDown/home/end" to SlickCellSelection when using selection with "Shift+{key}"
- add `hasDataView()` and `getViewportRowCount()` methods to SlickGrid and also make `getViewportHeight()` and `getViewportWidth()` as publish methods
- add new `example-spreadsheet-dataview.html` demo to manually test updated Cell Selection feature
@ghiscoding
Copy link
Collaborator

ghiscoding commented Oct 3, 2023

now available in latest version 5.1.0, I tested with these 2 live examples:

  • Excel spreadsheet
  • Excel spreadsheet with DataView (new), this is a new example and is the same as the previous one but with the use of the DataView, I also added it to test it with Pagination since executing a pageDown (or any other selection type) should not overflow its current page when Pagination is used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants