Commit eaac6cb
fix(web): polish playlist edit-mode shift+click range selection
Two small correctness fixes on top of the existing row-click selection
in playlist edit mode.
- `EditAwareTracksTable` now resets its shift-key ref on `window` blur.
Previously, holding Shift while Cmd/Alt-Tabbing away would leave the
ref stuck true (the keyup fires in the other window), so the next
click on return was interpreted as a shift-extend.
- `TrackSelectionContext.toggle` now keeps the anchor row stable across
a sequence of shift-clicks. The anchor only moves on a plain click.
This matches Finder / Gmail / Drive: click A, shift-click C selects
A..C; a follow-up shift-click E then selects A..E (not C..E).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 865bd00 commit eaac6cb
2 files changed
Lines changed: 17 additions & 3 deletions
File tree
- packages/web/src/components/collection/desktop/edit-mode/tracks
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| 56 | + | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
59 | 61 | | |
60 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| |||
0 commit comments