nextcloud / nextcloud/server

[Bug]: Files shortcut to select range doesn't select last item

Open
#54,506 0 comments 0 reactions 0 assignees View on GitHub

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: ⚠️
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
  1. Go to a folder with at least 3 items
  2. Click down arrow
  3. Ctrl + space (the first item is selected)
  4. Down, Down
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.