[Bug]: Files shortcut to select range doesn't select last item
Open
Nobody has claimed this yet.
0. Needs triage
31-feedback
bug
feature: files
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
When I use the shortcut to select a range on the file application (ctrl+shift+space), the file in-between the first selection and the current hovered file are selected but the last item isn't selected
Steps to reproduce
- Go to a folder with at least 3 items
- Click down arrow
- Ctrl + space (the first item is selected)
- Down, Down
- Ctrl + shift + space (select range)
Expected behavior
The 3 first items should be selected, but only the 2 first items are
Nextcloud Server version
31
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Using Firefox 141 on Linux
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the file application’s keyboard-selection handling and reproduce the listed sequence with at least three items in Firefox on Linux. The work is done when Ctrl+Shift+Space selects the first item, the hovered item, and every item between them, including the last item.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100