# Shift-click to select multiple cards in card browser broken

**URL:** <https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070>\
**Category:** Help\
**Created:** [March 7, 2021, 5:54am UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070 "2021-03-07T05:54:02Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![juan](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/juan/32/3757_2.png) [@juan](https://forums.ankiweb.net/u/juan)\
**Post date:** [March 7, 2021, 5:54am UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/1 "2021-03-07T05:54:02Z")

</div>

**Steps to reproduce:**

1. Open card browser and make sure you have at least 2-3 cards
2. Click on first card to select it
3. 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/](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.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [March 7, 2021, 11:27am UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/2 "2021-03-07T11:27:49Z")

</div>

Works for me on Windows.

---

<div class="post-metadata">

**Author:** ![khs](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/khs/32/3012_2.png) [@khs](https://forums.ankiweb.net/u/khs)\
**Post date:** [March 7, 2021, 5:06pm UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/3 "2021-03-07T17:06:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![juan](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/juan/32/3757_2.png) [@juan](https://forums.ankiweb.net/u/juan)\
**Post date:** [March 7, 2021, 6:45pm UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/4 "2021-03-07T18:45:17Z")

</div>

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](https://drive.google.com/file/d/1jNn9ZwzxQVNWR78xQnsT-pqWhIwaLds1/view?usp=sharing), it shows a mix of normal and shift-clicks and single and double clicks attempting to create multi-card selections.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [March 7, 2021, 7:25pm UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/5 "2021-03-07T19:25:22Z")

</div>

I was able to reproduce it after trying more. It happens in your video more frequently.  
Seems random to me.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 9, 2021, 2:02am UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/6 "2021-03-09T02:02:50Z")

</div>

@Rumo perhaps we have a race condition? I can’t seem to trigger it here

---

<div class="post-metadata">

**Author:** ![Rumo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/rumo/32/1505_2.png) [@Rumo](https://forums.ankiweb.net/u/Rumo)\
**Post date:** [March 9, 2021, 8:33am UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/7 "2021-03-09T08:33:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 9, 2021, 11:34pm UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/8 "2021-03-09T23:34:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![juan](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/juan/32/3757_2.png) [@juan](https://forums.ankiweb.net/u/juan)\
**Post date:** [March 13, 2021, 4:19am UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/9 "2021-03-13T04:19:15Z")

</div>

@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.

Thanks everyone

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 15, 2021, 12:42am UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/10 "2021-03-15T00:42:31Z")

</div>

While it seems Qt 5.15 fixes this, it unfortunately introduces a number of other regressions, so we’re stuck for now.

---

<div class="post-metadata">

**Author:** ![Zarathustraed](https://avatars.discourse-cdn.com/v4/letter/z/b487fb/32.png) [@Zarathustraed](https://forums.ankiweb.net/u/Zarathustraed)\
**Post date:** [December 30, 2021, 11:02am UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/11 "2021-12-30T11:02:06Z")

</div>

The problem persists on:

Anki 2.1.49  
macOS 12.0.1  
MacBook Pro M1 Pro  
No browser add-ons enabled

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [January 1, 2022, 11:24pm UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/12 "2022-01-01T23:24:17Z")

</div>

2.1.49 still uses the same toolkit version. You may have more luck with the [Qt6 beta](https://betas.ankiweb.net/).

---

<div class="post-metadata">

**Author:** ![garrettm30](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/garrettm30/32/1268_2.png) [@garrettm30](https://forums.ankiweb.net/u/garrettm30)\
**Post date:** [January 4, 2022, 4:04pm UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/13 "2022-01-04T16:04:24Z")

</div>

I can confirm for my part that I did have this trouble with 2.1.49, but the 2.1.50b2 beta with QT6 seems to have resolved it for me.

I am on Monterey 12.1 using a 1st-generation Apple Magic Trackpad (external).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 4:37am UTC](https://forums.ankiweb.net/t/shift-click-to-select-multiple-cards-in-card-browser-broken/8070/14 "2023-05-01T04:37:45Z")

</div>


