Open card browser and make sure you have at least 2-3 cards
Click on first card to select it
Shift-click on any other card
Expected behavior:
First card click, last card clicked and all cards in between are added to the current selection.
Actual behavior:
Only the last card is selected.
Environment:
Anki 2.1.41
MacOS Big Sur 11.2.2
I can reproduce this every time. I’ve tried all the troubleshooting steps described in https://faqs.ankiweb.net/ (restarting Anki, checking plugins, etc).
I’m pretty sure this worked in the past because I used it all the time, but I don’t know exactly when did it stop working.
Same here, works with Mac and 2.1.40, will test out 2.1.41 later today. It might be that sometimes the first selection is ignored so there’s a need to always do an initial and final selection, but it’s just a guess just now.
After reading Kent’s comment I went back to Anki try double-clicking at the beginning and end of a multi-card selection and some times that seems to work but the behavior doesn’t look deterministic or repeatable to me.
See this video, it shows a mix of normal and shift-clicks and single and double clicks attempting to create multi-card selections.
I can reliably reproduce the issue when I run the binaries (tested as far back as 2.1.22) but not when I run from source, not sure what that tells us.
Also as far as I know, Anki doesn’t really interfere with the table selection, it’s handled by a default selection model. So I hate to say it, but maybe it’s a framework issue?
Thanks, it may be a Qt 5.14 issue. I can’t seem to trigger it if I make sure to shift+click when the mouse is completely still - it only seems to happen if there’s a slight movement at the time of the shift+click.
@dae I’ve spent 1min trying shift-clicking with mouse completely still but I couldn’t get it to work. Then I re-did my selection from scratch and it worked the first time, so it does look like a race condition issue.
Update: I think dae is right. When I switch from my bluetooth keyboard + Logitech MX Master laser (sensitive) mouse to the Macbook Pro’s trackpad, I can reliably get shift-click selections working and I can’t reliably trigger the bug (but it’s still possible if I try to slide my finger on the trackpad while end-clicking).
It would be great if it were still possible to fix the issue because I normally work with the laptop closed on a vertical stand and I don’t have access to the trackpad.