# Two suppr lead to an empty warning

**URL:** <https://forums.ankiweb.net/t/two-suppr-lead-to-an-empty-warning/20860>\
**Category:** Help\
**Created:** [June 18, 2022, 12:19am UTC](https://forums.ankiweb.net/t/two-suppr-lead-to-an-empty-warning/20860 "2022-06-18T00:19:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArthurMilchior](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/arthurmilchior/32/4684_2.png) [@ArthurMilchior](https://forums.ankiweb.net/u/ArthurMilchior)\
**Post date:** [June 18, 2022, 12:19am UTC](https://forums.ankiweb.net/t/two-suppr-lead-to-an-empty-warning/20860/1 "2022-06-18T00:19:30Z")

</div>

If “ctrl+suppr” is pressed twice quickly in the browser it does the following:

- delete the note selected and the next one
- show an alert with an empty message
- remove undo (the worst part)

This in particular can occur if for some reason the computer was slow to show update and so you assumed the command was not registered.

I suppose that when you delete a note, the cursor is moved, and this new note was the one receiving the second delete. Ideally, I’d believe the action should be idempotent, and that you shouldn’t be able to delete a note if your cursor was not there when you pressed the button

Version ⁨2.1.53 (96bacf79)⁩  
Python 3.9.10 Qt 5.15.2 PyQt 5.15.5

---

<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:** [June 18, 2022, 12:44am UTC](https://forums.ankiweb.net/t/two-suppr-lead-to-an-empty-warning/20860/2 "2022-06-18T00:44:44Z")

</div>

I hit this error multiple times too.

---

<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:** [June 20, 2022, 1:08am UTC](https://forums.ankiweb.net/t/two-suppr-lead-to-an-empty-warning/20860/3 "2022-06-20T01:08:01Z")

</div>

Please let me know if the next rc doesn’t fix it.

---

<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:12am UTC](https://forums.ankiweb.net/t/two-suppr-lead-to-an-empty-warning/20860/4 "2023-05-01T04:12:25Z")

</div>

Closed on May 1, 2023, 4:12am UTC


