Files
ocis/changelog/unreleased/bugfix-shift-click-range-selection.md
Matteo b97840e770 fix: [OCISDEV-1358] shift-click range selection in the files list (#12804)
* fix: [OCISDEV-1358] shift-click range selection in the files list

Shift-clicking a checkbox now triggers range selection, a plain
shift-click replaces the current selection instead of adding to it, and
the browser no longer highlights the text of the affected rows.

* fix: [OCISDEV-1358] keep the checkbox checked state in sync with the model

The browser toggles the native checked property on every click, while vue does
not re-patch an unchanged model-value, so the property stayed flipped whenever a
click did not change the selection, e.g. when a range selection keeps an already
selected resource selected. The tiles view worked around that by preventing the
default click action, which desyncs the property for good: chromium restores the
pre-click value after vue has already patched it, so it never follows the model
again.

Sync the native property from the model in OcCheckbox once the parent had its
chance to react to the change, and drop the workaround.
2026-08-18 13:04:08 +02:00

481 B

Bugfix: Fix shift-click range selection in the files list

We have fixed an issue where shift-click did not select resources between the anchor and the clicked one, and ignored ctrl/cmd. It now selects the full range, replacing the current selection unless ctrl/cmd is held, and no longer highlights the text of the affected rows. Checkboxes now also keep their checked state in sync with the selection when a click does not change it.

https://github.com/owncloud/ocis/pull/12804